Sha256: a98d234dc1aadc75d589782910a5c5178e5901c323192a6d7ee0154049d321b4
Contents?: true
Size: 1.41 KB
Versions: 2
Compression:
Stored size: 1.41 KB
Contents
module Internals module Index class Redis # Redis Backend Accessor. # # Provides necessary helper methods for its # subclasses. # Not directly useable, as it does not provide # dump/load methods. # class Basic attr_reader :namespace # An index cache takes a path, without file extension, # which will be provided by the subclasses. # def initialize namespace @namespace = namespace @backend = ::Redis.new end # Does nothing. # def load # Nothing. end # We do not use Redis to retrieve data. # def retrieve # Nothing. end # Redis does not backup. # def backup # Nothing. end # Deletes the Redis index namespace. # def delete # TODO @backend. end # Checks. # # Is this cache suspiciously small? # def cache_small? false # TODO end # Is the cache ok? # # A small cache is still ok. # def cache_ok? false # TODO end # Extracts the size of the file in Bytes. # def size_of path # TODO end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
picky-1.4.3 | lib/picky/internals/index/redis/basic.rb |
picky-1.4.2 | lib/picky/internals/index/redis/basic.rb |