Module: SafeMemoize
- Includes:
- InstanceMethods
- Defined in:
- lib/safe_memoize.rb,
lib/safe_memoize/version.rb,
lib/safe_memoize/lru_methods.rb,
lib/safe_memoize/class_methods.rb,
lib/safe_memoize/configuration.rb,
lib/safe_memoize/hooks_methods.rb,
lib/safe_memoize/public_methods.rb,
lib/safe_memoize/release_tooling.rb,
lib/safe_memoize/instance_methods.rb,
lib/safe_memoize/custom_key_methods.rb,
lib/safe_memoize/inspection_methods.rb,
lib/safe_memoize/cache_store_methods.rb,
lib/safe_memoize/cache_record_methods.rb,
lib/safe_memoize/cache_metrics_methods.rb,
lib/safe_memoize/public_metrics_methods.rb,
lib/safe_memoize/public_custom_key_methods.rb
Defined Under Namespace
Modules: CacheMetricsMethods, CacheRecordMethods, CacheStoreMethods, ClassMethods, CustomKeyMethods, HooksMethods, InspectionMethods, InstanceMethods, LruMethods, PublicCustomKeyMethods, PublicMethods, PublicMetricsMethods, ReleaseTooling Classes: Configuration, Error
Constant Summary collapse
- VERSION =
"0.7.0"
Class Method Summary collapse
- .configuration ⇒ Object
- .configure {|configuration| ... } ⇒ Object
- .prepended(base) ⇒ Object
- .reset_configuration! ⇒ Object
Methods included from PublicCustomKeyMethods
#clear_custom_keys, #memoize_with_custom_key
Methods included from PublicMetricsMethods
#cache_hit_rate, #cache_metrics_reset, #cache_miss_rate, #cache_stats, #cache_stats_for
Methods included from PublicMethods
#clear_memo_hooks, #dump_memo, #load_memo, #memo_age, #memo_count, #memo_keys, #memo_preload, #memo_refresh, #memo_stale?, #memo_touch, #memo_ttl_remaining, #memo_values, #memoized?, #on_memo_evict, #on_memo_expire, #on_memo_hit, #on_memo_miss, #on_memo_store, #reset_all_memos, #reset_memo, #warm_memo
Class Method Details
.configuration ⇒ Object
31 32 33 |
# File 'lib/safe_memoize.rb', line 31 def self.configuration @configuration ||= Configuration.new end |
.configure {|configuration| ... } ⇒ Object
27 28 29 |
# File 'lib/safe_memoize.rb', line 27 def self.configure yield configuration end |
.prepended(base) ⇒ Object
23 24 25 |
# File 'lib/safe_memoize.rb', line 23 def self.prepended(base) base.extend(ClassMethods) end |
.reset_configuration! ⇒ Object
35 36 37 |
# File 'lib/safe_memoize.rb', line 35 def self.reset_configuration! @configuration = Configuration.new end |