Sha256: fa85ceba1677f3ec9dbb37b7cc3bde68a1fde6699b15792e6a67b061a27f56ac
Contents?: true
Size: 669 Bytes
Versions: 1
Compression:
Stored size: 669 Bytes
Contents
require "easy_redis/methods/getters" require "easy_redis/methods/setters" require "easy_redis/methods/deleters" require "easy_redis/methods/updaters" module EasyRedis module Methods def self.included(klass) klass.class_eval do include EasyRedis::Getters include EasyRedis::Setters include EasyRedis::Deleters include EasyRedis::Updaters end end def redis_key @redis_key ||= "#{EasyRedis::Redis.namespace}:attributes:#{self.class.name}:#{self.id}" end def redis_cli EasyRedis::Redis.redis end def use_type_casting? EasyRedis::Redis.use_type_casting? end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
easy_redis-0.0.2 | lib/easy_redis/methods/methods.rb |