class ActiveSupport::Cache::CouchbaseStoreWithSaneTtl

Public Class Methods

new(options = nil) click to toggle source
Calls superclass method
# File lib/active_support/cache/couchbase_store_with_sane_ttl.rb, line 11
def initialize(options = nil)
  options = options || {}
  extract_large_default_ttl! options, [:default_ttl, :expires_in]
  super options
end

Public Instance Methods

decrement(name, amount = 1, options = nil) click to toggle source
Calls superclass method
# File lib/active_support/cache/couchbase_store_with_sane_ttl.rb, line 23
def decrement(name, amount = 1, options = nil)
  options = options || {}
  sanitize_ttl_options! options, [:ttl, :expires_in], :expires_in
  super name, amount, options
end
increment(name, amount = 1, options = nil) click to toggle source
Calls superclass method
# File lib/active_support/cache/couchbase_store_with_sane_ttl.rb, line 17
def increment(name, amount = 1, options = nil)
  options = options || {}
  sanitize_ttl_options! options, [:ttl, :expires_in], :expires_in
  super name, amount, options
end

Protected Instance Methods

write_entry(key, value, options) click to toggle source
Calls superclass method
# File lib/active_support/cache/couchbase_store_with_sane_ttl.rb, line 31
def write_entry(key, value, options)
  options = options || {}
  sanitize_ttl_options! options, [:ttl, :expires_in], :expires_in
  super key, value, options
end