2015-10-21 12:37:28 +02:00
|
|
|
require 'librarix/version'
|
|
|
|
require 'librarix/redis'
|
|
|
|
require 'librarix/redis/movie'
|
|
|
|
|
|
|
|
require 'librarix/application'
|
2015-10-20 12:45:31 +02:00
|
|
|
|
|
|
|
module Librarix
|
2015-10-21 12:37:28 +02:00
|
|
|
def self.redis
|
|
|
|
@redis ||= Librarix::Redis.new(::Redis.new)
|
|
|
|
end
|
|
|
|
|
|
|
|
def self.redis=(connection, namespace: 'librarix')
|
|
|
|
@redis = Librarix::Redis.new(connection, namespace: namespace)
|
|
|
|
end
|
2015-10-20 12:45:31 +02:00
|
|
|
end
|