Sha256: 09c542f31ff7ec79564d78f7d96209640fd2ed29f79eef243f045ffca3af4415
Contents?: true
Size: 470 Bytes
Versions: 1
Compression:
Stored size: 470 Bytes
Contents
require 'redis' module Legion module Cache module Redis def connect @client = Redis.new end def close @client.close end def restart close connect end def get(key) @client[key] end def set(key, value) @client[key] = value end def delete(key) @client.del key end def flush @client.flushdb end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
legion-cache-0.2.0 | lib/legion/cache/redis.rb |