Module: Collectr

Defined in:
lib/collectr/redis/redis_hash_expiry.rb,
lib/collectr.rb,
lib/collectr/bag.rb,
lib/collectr/version.rb,
lib/collectr/null/null_hash.rb,
lib/collectr/redis/redis_set.rb,
lib/collectr/redis/redis_base.rb,
lib/collectr/redis/redis_hash.rb,
lib/collectr/redis/redis_array.rb,
lib/collectr/memory/memory_hash.rb,
lib/collectr/redis/redis_factory.rb,
lib/collectr/memory/memory_factory.rb

Overview

Redis has a special hash type, which keeps the redis namespace clean, but doesn’t allow expriations of the keys inside the hash.

This class solves that problem by placing the keys in the global redis namespec. As long as the name provided upon creation is unique, this class acts like a hash.

It might be tempting to replace redis_hash.rb with this code; however, that file is preferable when expirations aren’t needed because the namespace is kept clean.

Defined Under Namespace

Classes: Bag, MemoryFactory, MemoryHash, NullHash, RedisArray, RedisBase, RedisFactory, RedisHash, RedisHashExpiry, RedisSet

Constant Summary collapse

VERSION =
"0.0.7"