class ThreadSafe::SynchronizedCacheBackend
Public Instance Methods
[](key)
click to toggle source
WARNING: Mutex_m is a non-reentrant lock, so the synchronized methods are not allowed to call each other.
Calls superclass method
ThreadSafe::NonConcurrentCacheBackend#[]
# File lib/thread_safe/synchronized_cache_backend.rb, line 7 def [](key) synchronize { super } end
[]=(key, value)
click to toggle source
Calls superclass method
ThreadSafe::NonConcurrentCacheBackend#[]=
# File lib/thread_safe/synchronized_cache_backend.rb, line 11 def []=(key, value) synchronize { super } end
clear()
click to toggle source
Calls superclass method
ThreadSafe::NonConcurrentCacheBackend#clear
# File lib/thread_safe/synchronized_cache_backend.rb, line 59 def clear synchronize { super } end
compute(key)
click to toggle source
Calls superclass method
ThreadSafe::NonConcurrentCacheBackend#compute
# File lib/thread_safe/synchronized_cache_backend.rb, line 23 def compute(key) synchronize { super } end
compute_if_absent(key)
click to toggle source
Calls superclass method
ThreadSafe::NonConcurrentCacheBackend#compute_if_absent
# File lib/thread_safe/synchronized_cache_backend.rb, line 15 def compute_if_absent(key) synchronize { super } end
compute_if_present(key)
click to toggle source
Calls superclass method
ThreadSafe::NonConcurrentCacheBackend#compute_if_present
# File lib/thread_safe/synchronized_cache_backend.rb, line 19 def compute_if_present(key) synchronize { super } end
delete(key)
click to toggle source
Calls superclass method
ThreadSafe::NonConcurrentCacheBackend#delete
# File lib/thread_safe/synchronized_cache_backend.rb, line 51 def delete(key) synchronize { super } end
delete_pair(key, value)
click to toggle source
Calls superclass method
ThreadSafe::NonConcurrentCacheBackend#delete_pair
# File lib/thread_safe/synchronized_cache_backend.rb, line 55 def delete_pair(key, value) synchronize { super } end
get_and_set(key, value)
click to toggle source
Calls superclass method
ThreadSafe::NonConcurrentCacheBackend#get_and_set
# File lib/thread_safe/synchronized_cache_backend.rb, line 39 def get_and_set(key, value) synchronize { super } end
get_or_default(key, default_value)
click to toggle source
Calls superclass method
ThreadSafe::NonConcurrentCacheBackend#get_or_default
# File lib/thread_safe/synchronized_cache_backend.rb, line 67 def get_or_default(key, default_value) synchronize { super } end
key?(key)
click to toggle source
Calls superclass method
ThreadSafe::NonConcurrentCacheBackend#key?
# File lib/thread_safe/synchronized_cache_backend.rb, line 43 def key?(key) synchronize { super } end
merge_pair(key, value)
click to toggle source
Calls superclass method
ThreadSafe::NonConcurrentCacheBackend#merge_pair
# File lib/thread_safe/synchronized_cache_backend.rb, line 27 def merge_pair(key, value) synchronize { super } end
replace_if_exists(key, new_value)
click to toggle source
Calls superclass method
ThreadSafe::NonConcurrentCacheBackend#replace_if_exists
# File lib/thread_safe/synchronized_cache_backend.rb, line 35 def replace_if_exists(key, new_value) synchronize { super } end
replace_pair(key, old_value, new_value)
click to toggle source
Calls superclass method
ThreadSafe::NonConcurrentCacheBackend#replace_pair
# File lib/thread_safe/synchronized_cache_backend.rb, line 31 def replace_pair(key, old_value, new_value) synchronize { super } end
size()
click to toggle source
Calls superclass method
ThreadSafe::NonConcurrentCacheBackend#size
# File lib/thread_safe/synchronized_cache_backend.rb, line 63 def size synchronize { super } end
value?(value)
click to toggle source
Calls superclass method
ThreadSafe::NonConcurrentCacheBackend#value?
# File lib/thread_safe/synchronized_cache_backend.rb, line 47 def value?(value) synchronize { super } end
Private Instance Methods
dupped_backend()
click to toggle source
Calls superclass method
ThreadSafe::NonConcurrentCacheBackend#dupped_backend
# File lib/thread_safe/synchronized_cache_backend.rb, line 72 def dupped_backend synchronize { super } end