Sha256: 8757b3668d885d6cc1d2ac2e2c890853b0d1b1fdd16c54ea1827fd5e3e17dd1d
Contents?: true
Size: 1.45 KB
Versions: 5
Compression:
Stored size: 1.45 KB
Contents
module Internals # encoding: utf-8 # module Indexed # :nodoc:all # # module Bundle # This is the _actual_ index (based on Redis). # # Handles exact/partial index, weights index, and similarity index. # class Redis < Base def initialize name, configuration, *args super name, configuration, *args @backend = Internals::Index::Redis.new name, configuration end # Get the ids for the given symbol. # # Ids are an array of string values in Redis. # def ids sym @backend.ids sym end # Get a weight for the given symbol. # # A weight is a string value in Redis. TODO Convert? # def weight sym @backend.weight sym end # TODO Spec. Doc. # def [] sym @backend.setting sym end # Loads the core index. # def load_index # TODO check if it is there. end # Loads the weights index. # def load_weights # TODO check if it is there. end # Loads the similarity index. # def load_similarity # TODO check if it is there. end # Loads the configuration. # def load_configuration # TODO check if it is there. end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems