Sha256: 2602fd7c75a5966c13a4f0d2fa2dcf4483b78a78940d6f4a17b88e0a30733f16

Contents?: true

Size: 1.33 KB

Versions: 3

Compression:

Stored size: 1.33 KB

Contents

class ActiveOrm::Redis::Connection < ActiveOrm::Redis

  def self.authenticate(password)
    client.auth(password)
  end

  def self.connected?
    client.connected?
  end

  def self.database(index)
    client.select(index)
  end

  def self.database_id
    client.database_id
  end

  def self.database_size
    client.dbsize
  end

  def self.debug(*args)
    client.debug(args)
  end

  def self.disconnect
    client.disconnect
  end

  def self.echo(message)
    client.echo(message)
  end

  def self.flush
    client.flushdb
  end

  def self.flush_all
    client.flushall
  end

  def self.info
    client.info
  end

  def self.ping
    client.ping
  end

  def self.quit
    client.quit
  end

  def self.reconnect
    client.reconnect
  end

  def self.rewrite_aof
    client.bgrewriteaof
  end

  def self.save
    client.bgsave
  end

  def self.saved_at
    client.lastsave
  end

  def self.shutdown
    client.shutdown
  end

  def self.slave_of(host, port)
    client.slaveof(host, port)
  end

  def self.slowlog(command, length = nil)
    client.slowlog(command, length)
  end

  def self.synchronize
    client.synchronize
  end

  def self.time
    client.time
  end

  def self.with_reconnect(&block)
    client.with_reconnect(true, &block)
  end

  def self.without_reconnect(&block)
    client.with_reconnect(false, &block)
  end

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
active_orm-4.0.3 lib/active_orm/redis/connection.rb
active_orm-4.0.2 lib/active_orm/redis/connection.rb
active_orm-4.0.1 lib/active_orm/redis/connection.rb