Module Ohm
In: lib/ohm.rb
lib/ohm/json.rb

Methods

flush   redis   redis=  

Classes and Modules

Module Ohm::Collection
Module Ohm::ErrorPatterns
Module Ohm::Utils
Class Ohm::Error
Class Ohm::IndexNotFound
Class Ohm::List
Class Ohm::MissingID
Class Ohm::Model
Class Ohm::MutableSet
Class Ohm::Set
Class Ohm::UniqueIndexViolation

Constants

LUA_CACHE = Hash.new { |h, k| h[k] = Hash.new }
LUA_SAVE = File.expand_path("../ohm/lua/save.lua", __FILE__)
LUA_DELETE = File.expand_path("../ohm/lua/delete.lua", __FILE__)

Public Class methods

Wrapper for Ohm.redis.call("FLUSHDB").

Use this if you want to do quick ad hoc redis commands against the defined Ohm connection.

Examples:

  Ohm.redis.call("SET", "foo", "bar")
  Ohm.redis.call("FLUSH")

[Validate]