Sha256: 9c7e95cfdf8063ea842888105d4eb7ea1446d30ad016db2726e47c59cf4e00ce
Contents?: true
Size: 495 Bytes
Versions: 2
Compression:
Stored size: 495 Bytes
Contents
require 'redis' require 'active_model' require 'active_support/all' require 'multi_json' require 'modis/version' require 'modis/configuration' require 'modis/attributes' require 'modis/errors' require 'modis/persistence' require 'modis/transaction' require 'modis/finders' require 'modis/model' module Modis @mutex = Mutex.new def self.redis return @redis if @redis @mutex.synchronize { @redis = Redis.new } @redis end def self.redis=(redis) @redis = redis end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
modis-1.0.0 | lib/modis.rb |
modis-0.0.1 | lib/modis.rb |