class Spinel::Client
Attributes
type[RW]
Public Class Methods
new(type = :default)
click to toggle source
# File lib/spinel/client.rb, line 9 def initialize type = :default @type = type end
Public Instance Methods
cachekey(words)
click to toggle source
# File lib/spinel/client.rb, line 21 def cachekey words "#{Spinel.namespace}:cache:#{type}:#{words.join('|')}" end
database()
click to toggle source
# File lib/spinel/client.rb, line 17 def database "#{Spinel.namespace}:data:#{type}" end
index(p)
click to toggle source
# File lib/spinel/client.rb, line 13 def index p "#{Spinel.namespace}:index:#{type}:#{p}" end