lib/redis/objects.rb in redis-objects-0.3.2 vs lib/redis/objects.rb in redis-objects-0.4.0
- old
+ new
@@ -42,10 +42,11 @@
autoload :Lists, File.join(dir, 'lists')
autoload :Locks, File.join(dir, 'locks')
autoload :Sets, File.join(dir, 'sets')
autoload :SortedSets, File.join(dir, 'sorted_sets')
autoload :Values, File.join(dir, 'values')
+ autoload :Hashes, File.join(dir, 'hashes')
class NotConnected < StandardError; end
class << self
def redis=(conn) @redis = conn end
@@ -65,9 +66,10 @@
klass.send :include, Redis::Objects::Lists
klass.send :include, Redis::Objects::Locks
klass.send :include, Redis::Objects::Sets
klass.send :include, Redis::Objects::SortedSets
klass.send :include, Redis::Objects::Values
+ klass.send :include, Redis::Objects::Hashes
end
end
# Class methods that appear in your class when you include Redis::Objects.
module ClassMethods