Class: K8y::REST::Auth::TokenStore
- Inherits:
-
Object
- Object
- K8y::REST::Auth::TokenStore
- Defined in:
- lib/k8y/rest/auth/token_store.rb
Class Method Summary collapse
Class Method Details
.[](hostname) ⇒ Object
8 9 10 |
# File 'lib/k8y/rest/auth/token_store.rb', line 8 def [](hostname) lock.synchronize { store[hostname] } end |
.[]=(hostname, token) ⇒ Object
12 13 14 |
# File 'lib/k8y/rest/auth/token_store.rb', line 12 def []=(hostname, token) lock.synchronize { store[hostname] = token } end |