Sha256: 0c0f053fd631102761d2f11b5b704687a41eaf78f7f36d8f511ecd2abef265a0

Contents?: true

Size: 1.38 KB

Versions: 8

Compression:

Stored size: 1.38 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.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

8 entries across 8 versions & 1 rubygems

Version Path
active_orm-2.4.0 lib/active_orm/redis/connection.rb
active_orm-2.3.0 lib/active_orm/redis/connection.rb
active_orm-2.2.0 lib/active_orm/redis/connection.rb
active_orm-2.1.0 lib/active_orm/redis/connection.rb
active_orm-2.0.2 lib/active_orm/redis/connection.rb
active_orm-2.0.1 lib/active_orm/redis/connection.rb
active_orm-2.0.0 lib/active_orm/redis/connection.rb
active_orm-1.0.0 lib/active_orm/redis/connection.rb