Module: ActiveSupport::Cache::CouchbaseStore::Threadsafe

Defined in:
lib/active_support/cache/couchbase_store.rb

Instance Method Summary collapse

Instance Method Details

#decrObject


412
413
414
415
416
# File 'lib/active_support/cache/couchbase_store.rb', line 412

def decr(*)
  @lock.synchronize do
    super
  end
end

#deleteObject


400
401
402
403
404
# File 'lib/active_support/cache/couchbase_store.rb', line 400

def delete(*)
  @lock.synchronize do
    super
  end
end

#getObject


388
389
390
391
392
# File 'lib/active_support/cache/couchbase_store.rb', line 388

def get(*)
  @lock.synchronize do
    super
  end
end

#incrObject


406
407
408
409
410
# File 'lib/active_support/cache/couchbase_store.rb', line 406

def incr(*)
  @lock.synchronize do
    super
  end
end

#init_threadsafeObject


424
425
426
# File 'lib/active_support/cache/couchbase_store.rb', line 424

def init_threadsafe
  @lock = Monitor.new
end

#sendObject


394
395
396
397
398
# File 'lib/active_support/cache/couchbase_store.rb', line 394

def send(*)
  @lock.synchronize do
    super
  end
end

#statsObject


418
419
420
421
422
# File 'lib/active_support/cache/couchbase_store.rb', line 418

def stats(*)
  @lock.synchronize do
    super
  end
end