Module: RedisColumn
- Defined in:
- lib/redis-column.rb,
lib/redis-column/version.rb
Defined Under Namespace
Modules: Record
Constant Summary collapse
- VERSION =
"0.0.3"
Class Method Summary collapse
-
.config ⇒ Object
Returns the current Redis configuration.
-
.config=(hash) ⇒ Object
Sets the Redis configuration.
-
.redis_instance ⇒ Object
Active Redis connection.
Class Method Details
.config ⇒ Object
Returns the current Redis configuration
8 9 10 |
# File 'lib/redis-column.rb', line 8 def self.config @@config ||= {} end |
.config=(hash) ⇒ Object
Sets the Redis configuration
13 14 15 |
# File 'lib/redis-column.rb', line 13 def self.config= hash @@config = hash end |
.redis_instance ⇒ Object
Active Redis connection
18 19 20 |
# File 'lib/redis-column.rb', line 18 def self.redis_instance @@redis_instance ||= Redis.new(config) end |