class LockManager::Connection
Attributes
options[R]
Public Class Methods
connection_class(type)
click to toggle source
# File lib/lock_manager/connection.rb, line 5 def self.connection_class(type) case type.to_s when 'redis' require 'lock_manager/redis_connection' LockManager::RedisConnection else raise ArgumentError, "Unknown connection type: #{type}" end end
new(options = {})
click to toggle source
# File lib/lock_manager/connection.rb, line 15 def initialize(options = {}) @options = options end
Public Instance Methods
read(key)
click to toggle source
# File lib/lock_manager/connection.rb, line 23 def read(key) raise "Not implemented: read(#{key})" end
remove(key)
click to toggle source
# File lib/lock_manager/connection.rb, line 27 def remove(key) raise "Not implemented: remove(#{key})" end
write(key, value)
click to toggle source
# File lib/lock_manager/connection.rb, line 19 def write(key, value) raise "Not implemented: write(#{key}, #{value})" end