class AnyCache::Adapters::Basic

@api private @since 0.1.0

Attributes

driver[R]

@return [Object]

@api private @since 0.1.0

Public Class Methods

new(driver) click to toggle source

@param driver [Object] @return [void]

@api private @since 0.1.0

# File lib/any_cache/adapters/basic.rb, line 34
def initialize(driver)
  @driver = driver
end
supported_driver?(driver) click to toggle source

@param driver [Object] @return [Boolean]

@api private @since 0.1.0

# File lib/any_cache/adapters/basic.rb, line 18
def supported_driver?(driver)
  false
end

Public Instance Methods

cleanup(**options) click to toggle source

@param options [Hash] @return [void]

@api private @since 0.4.0

# File lib/any_cache/adapters/basic.rb, line 177
def cleanup(**options)
  raise NotImplementedError
end
clear(**options) click to toggle source

@param options [Hash] @return [void]

@api private @since 0.1.0

# File lib/any_cache/adapters/basic.rb, line 168
def clear(**options)
  raise NotImplementedError
end
decrement(key, value, **options) click to toggle source

@param key [String] @param value [Integer, Float] @param options [Hash] @return [Integer, Float]

@api private @since 0.1.0

# File lib/any_cache/adapters/basic.rb, line 139
def decrement(key, value, **options)
  raise NotImplementedError
end
delete(key, **options) click to toggle source

@param key [String] @param options [Hash] @return [void]

@api private @since 0.1.0

# File lib/any_cache/adapters/basic.rb, line 107
def delete(key, **options)
  raise NotImplementedError
end
delete_matched(pattern, **options) click to toggle source

@param pattern [Regexp, String, Object] @param options [Hash] @return [void]

@api private @since 0.3.0

# File lib/any_cache/adapters/basic.rb, line 117
def delete_matched(pattern, **options)
  raise NotImplementedError
end
exist?(key, **options) click to toggle source

@param key [String] @param options [Hash] @return [Boolean]

@api private @since 0.2.0

# File lib/any_cache/adapters/basic.rb, line 187
def exist?(key, **options)
  raise NotImplementedError
end
expire(key, expires_in:) click to toggle source

@param key [String] @option expires_in [Integer] @return [void]

@api private @since 0.1.0

# File lib/any_cache/adapters/basic.rb, line 149
def expire(key, expires_in:)
  raise NotImplementedError
end
fetch(key, **options, &fallback) click to toggle source

@param key [String] @param options [Hash] @param fallback [Proc] @return [Object]

@api private @since 0.2.0

# File lib/any_cache/adapters/basic.rb, line 86
def fetch(key, **options, &fallback)
  raise NotImplementedError
end
fetch_multi(*keys, **options, &fallback) click to toggle source

@param keys [Array<String>] @param options [Hash] @param fallback [Proc] @return [Hash]

@api private @since 0.3.0

# File lib/any_cache/adapters/basic.rb, line 97
def fetch_multi(*keys, **options, &fallback)
  raise NotImplementedError
end
increment(key, value, **options) click to toggle source

@param key [String] @param value [Integer, Float] @param options [Hash] @return [Integer, Float]

@api private @sinc 0.1.0

# File lib/any_cache/adapters/basic.rb, line 128
def increment(key, value, **options)
  raise NotImplementedError
end
persist(key, **options) click to toggle source

@param key [String] @param options [Hash] @return [void]

@api private @since 0.1.0

# File lib/any_cache/adapters/basic.rb, line 159
def persist(key, **options)
  raise NotImplementedError
end
read(key, **options) click to toggle source

@param key [String] @param options [Hash] @return [Object]

@api private @since 0.1.0

# File lib/any_cache/adapters/basic.rb, line 44
def read(key, **options)
  raise NotImplementedError
end
read_multi(*keys, **options) click to toggle source

@param keys [Array<String>] @param options [Hash] @return [Hash]

@api private @since 0.3.0

# File lib/any_cache/adapters/basic.rb, line 54
def read_multi(*keys, **options)
  raise NotImplementedError
end
write(key, value, **options) click to toggle source

@param key [String] @param value [Object] @param options [Hash] @return [void]

@api private @sinc 0.1.0

# File lib/any_cache/adapters/basic.rb, line 65
def write(key, value, **options)
  raise NotImplementedError
end
write_multi(entries, **options) click to toggle source

@param entries [Hash] @param options [Hash] @return [void]

@api private @since 0.3.0

# File lib/any_cache/adapters/basic.rb, line 75
def write_multi(entries, **options)
  raise NotImplementedError
end