HACacheKey
public protocol HACacheKey
A cache key for HACachesContainer
-
The value type in the cache, e.g.
TinHACache<T>Declaration
Swift
associatedtype Value -
Create a cache on a particular connection
This is called exactly once per connection per cache key.
Declaration
Swift
static func create( connection: HAConnection, data: [String: Any] ) -> HACache<Value>Parameters
connectionThe connection to create on
dataThe data passed to connection request
Return Value
The cache you want to associate with the key
View on GitHub