Module Familia::InstanceMethods
In: lib/familia/object.rb

Methods

allkeys   destroy!   exists?   expire   from_redis   index   index=   initialize_redis_objects   new   object_proxy   qstamp   raw   realttl   redis   redisinfo   rediskey   redistype   redisuri   save   savenx   shortid   ttl   ttl=   update!  

Public Class methods

A default initialize method. This will be replaced if a class defines its own initialize method after including Familia. In that case, the replacement must call initialize_redis_objects.

Public Instance methods

def rediskeys

  self.class.redis_objects.each do |redis_object_definition|

  end

end

This needs to be called in the initialize method of any class that includes Familia.

suffix is the value to be used at the end of the redis key + ignored+ is literally ignored. It‘s around to maintain consistency with the class version of this method. (RedisObject#rediskey may call against a class or instance).

Finds the shortest available unique key (lower limit of 6)

[Validate]