Sha256: a3c01fb00faa1ee56dd9d816816ea58d9d1585d9bd840f7ac10be7beb18c3a40

Contents?: true

Size: 1.34 KB

Versions: 1

Compression:

Stored size: 1.34 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(val = true, &block)
    client.with_reconnect(val, &block)
  end

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

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
active_orm-4.0.0 lib/active_orm/redis/connection.rb