Sha256: f2fd5a591e29d7022ec486b67879ba8d9ca059d7bda826d3fd19cccb268b1f2b

Contents?: true

Size: 1.32 KB

Versions: 139

Compression:

Stored size: 1.32 KB

Contents

module ThreadSafe
  class SynchronizedCacheBackend < NonConcurrentCacheBackend
    require 'mutex_m'
    include Mutex_m
    # WARNING: Mutex_m is a non-reentrant lock, so the synchronized methods are
    # not allowed to call each other.

    def [](key)
      synchronize { super }
    end

    def []=(key, value)
      synchronize { super }
    end

    def compute_if_absent(key)
      synchronize { super }
    end

    def compute_if_present(key)
      synchronize { super }
    end

    def compute(key)
      synchronize { super }
    end

    def merge_pair(key, value)
      synchronize { super }
    end

    def replace_pair(key, old_value, new_value)
      synchronize { super }
    end

    def replace_if_exists(key, new_value)
      synchronize { super }
    end

    def get_and_set(key, value)
      synchronize { super }
    end

    def key?(key)
      synchronize { super }
    end

    def value?(value)
      synchronize { super }
    end

    def delete(key)
      synchronize { super }
    end

    def delete_pair(key, value)
      synchronize { super }
    end

    def clear
      synchronize { super }
    end

    def size
      synchronize { super }
    end

    def get_or_default(key, default_value)
      synchronize { super }
    end

    private
    def dupped_backend
      synchronize { super }
    end
  end
end

Version data entries

139 entries across 131 versions & 45 rubygems

Version Path
logstash-output-scalyr-0.1.15.beta vendor/bundle/jruby/2.5.0/gems/thread_safe-0.3.6-java/lib/thread_safe/synchronized_cache_backend.rb
logstash-output-scalyr-0.1.14.beta vendor/bundle/jruby/2.5.0/gems/thread_safe-0.3.6-java/lib/thread_safe/synchronized_cache_backend.rb
logstash-output-scalyr-0.1.13 vendor/bundle/jruby/2.5.0/gems/thread_safe-0.3.6-java/lib/thread_safe/synchronized_cache_backend.rb
logstash-output-scalyr-0.1.12 vendor/bundle/jruby/2.5.0/gems/thread_safe-0.3.6-java/lib/thread_safe/synchronized_cache_backend.rb
logstash-output-scalyr-0.1.11.beta vendor/bundle/jruby/2.5.0/gems/thread_safe-0.3.6-java/lib/thread_safe/synchronized_cache_backend.rb
logstash-output-scalyr-0.1.10.beta vendor/bundle/jruby/2.5.0/gems/thread_safe-0.3.6-java/lib/thread_safe/synchronized_cache_backend.rb
logstash-output-scalyr-0.1.9 vendor/bundle/jruby/2.5.0/gems/thread_safe-0.3.6-java/lib/thread_safe/synchronized_cache_backend.rb
logstash-output-scalyr-0.1.8 vendor/bundle/jruby/2.5.0/gems/thread_safe-0.3.6-java/lib/thread_safe/synchronized_cache_backend.rb
logstash-output-scalyr-0.1.7 vendor/bundle/jruby/2.5.0/gems/thread_safe-0.3.6-java/lib/thread_safe/synchronized_cache_backend.rb
logstash-output-scalyr-0.1.6 vendor/bundle/jruby/2.5.0/gems/thread_safe-0.3.6-java/lib/thread_safe/synchronized_cache_backend.rb
logstash-output-newrelic-1.2.0 vendor/bundle/jruby/2.5.0/gems/thread_safe-0.3.6-java/lib/thread_safe/synchronized_cache_backend.rb
grape-extra_validators-2.0.0 vendor/bundle/ruby/2.6.0/gems/thread_safe-0.3.6/lib/thread_safe/synchronized_cache_backend.rb
logstash-filter-csharp-0.2.1 vendor/bundle/jruby/2.5.0/gems/thread_safe-0.3.6-java/lib/thread_safe/synchronized_cache_backend.rb
logstash-filter-csharp-0.2.1 vendor/bundle/jruby/2.3.0/gems/thread_safe-0.3.6-java/lib/thread_safe/synchronized_cache_backend.rb
logstash-filter-csharp-0.2.0 vendor/bundle/jruby/2.5.0/gems/thread_safe-0.3.6-java/lib/thread_safe/synchronized_cache_backend.rb
logstash-filter-csharp-0.2.0 vendor/bundle/jruby/2.3.0/gems/thread_safe-0.3.6-java/lib/thread_safe/synchronized_cache_backend.rb
metanorma-cli-1.3.4 gems/ruby/2.6.0/gems/thread_safe-0.3.6/lib/thread_safe/synchronized_cache_backend.rb
metanorma-cli-1.3.3.1 gems/ruby/2.6.0/gems/thread_safe-0.3.6/lib/thread_safe/synchronized_cache_backend.rb
logstash-output-scalyr-0.1.5 vendor/bundle/jruby/2.5.0/gems/thread_safe-0.3.6-java/lib/thread_safe/synchronized_cache_backend.rb
logstash-output-scalyr-0.1.4 vendor/bundle/jruby/2.5.0/gems/thread_safe-0.3.6-java/lib/thread_safe/synchronized_cache_backend.rb