Class: McpAuthorization::Cache::NullStore

Inherits:
Object
  • Object
show all
Defined in:
lib/mcp_authorization/cache/null_store.rb

Overview

No-op store. The default — caching is opt-in. Every read misses, every write is discarded, so behavior is identical to a gem with no cache.

Instance Method Summary collapse

Instance Method Details

#clearObject

: () -> void



17
# File 'lib/mcp_authorization/cache/null_store.rb', line 17

def clear; end

#get(_key) ⇒ Object

: (String) -> nil



7
8
9
# File 'lib/mcp_authorization/cache/null_store.rb', line 7

def get(_key)
  nil
end

#set(_key, _value, ttl: nil) ⇒ Object

: (String, untyped, ?ttl: Integer?) -> void



12
13
14
# File 'lib/mcp_authorization/cache/null_store.rb', line 12

def set(_key, _value, ttl: nil)
  nil
end