Module: BucketMaker::Models::Redisable::InstanceMethods
- Includes:
- Bucketable
- Defined in:
- lib/bucket_maker/models/redisable.rb
Instance Method Summary
collapse
Methods included from Bucketable
#bucketize!, #bucketize_for_series_and_bucket!, #force_to_bucket!, #in_bucket?, #not_in_bucket?
Instance Method Details
#group_for_key(series_key) ⇒ Object
23
24
25
|
# File 'lib/bucket_maker/models/redisable.rb', line 23
def group_for_key(series_key)
self.class.redis.get(series_key)
end
|
#set_group_for_key(series_key, group_name) ⇒ Object
27
28
29
|
# File 'lib/bucket_maker/models/redisable.rb', line 27
def set_group_for_key(series_key, group_name)
self.class.redis.setex(series_key, BucketMaker.configuration.redis_expiration_time, group_name)
end
|