Sha256: 90dd5650d440a5de41326e3b31830c53a943ce56f44d17c51fef05b9de5d802d
Contents?: true
Size: 1.2 KB
Versions: 1
Compression:
Stored size: 1.2 KB
Contents
module Kredis::Types def proxy(key, config: :shared) Kredis::Types::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 string(key, config: :shared) Kredis::Types::String.new configured_for(config), namespaced_key(key) end def integer(key, config: :shared) Kredis::Types::Integer.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/types/proxy" require "kredis/types/list" require "kredis/types/unique_list" require "kredis/types/counter" require "kredis/types/flag" require "kredis/types/string" require "kredis/types/integer" require "kredis/types/mutex"
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
kredis-0.1.2 | lib/kredis/types.rb |