Sha256: 53e801cf1c3c09ae7c295fe62eae91fa2b56ee82c3b7d49899870c40e1c49ec7
Contents?: true
Size: 920 Bytes
Versions: 1
Compression:
Stored size: 920 Bytes
Contents
module Kredis::Types def keyed(key, config: :shared) Kredis::Proxy.new configured_for(config), namespaced_key(key) end def list(key, config: :shared) List.new configured_for(config), namespaced_key(key) end def unique_list(key, limit: nil, config: :shared) UniqueList.new configured_for(config), namespaced_key(key), limit: limit end def counter(key, expires_in: nil, config: :shared) Counter.new configured_for(config), namespaced_key(key), expires_in: expires_in end def flag(key, config: :shared) Flag.new configured_for(config), namespaced_key(key) end def mutex(key, expires_in: nil, config: :shared) Mutex.new configured_for(config), namespaced_key(key), expires_in: expires_in end end require "kredis/proxy" require "kredis/types/list" require "kredis/types/unique_list" require "kredis/types/counter" require "kredis/types/flag" require "kredis/types/mutex"
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
kredis-0.1.1 | lib/kredis/types.rb |