module Pelican
Constants
- VERSION
Attributes
key[RW]
redis[RW]
Public Instance Methods
default_key()
click to toggle source
# File lib/pelican/config.rb, line 10 def default_key 'pelican:state' end
setup(key = nil, opts = {})
click to toggle source
# File lib/pelican/config.rb, line 5 def setup(key = nil, opts = {}) @key = key || default_key @redis = Redis.new(opts) end