SwiftclassIntelligencePlatform

class IntelligencePlatform.LRUCache

Structure

What a query’s scopes step through. Every node here can be matched — see the syntax.

inherits{}

Members 12

  1. deinitdeinit
  2. fieldlet capacity: Int+0x10
  3. fieldvar nodeMap: [A : IntelligencePlatform.LRUCacheNode<A, B>]+0x18
  4. fieldlet sentinel: IntelligencePlatform.LRUCacheNode<A, B>+0x20
  5. funcclear() -> ()
  6. funccreateOrGet(_: A, initializer: () throws -> B) throws -> B
  7. funcget(A) -> B?
  8. funcremove(key: A) -> ()
  9. funcset(_: B, forKey: A) -> ()
  10. initIntelligencePlatform.LRUCache.__allocating_init(capacity: Int) -> IntelligencePlatform.LRUCache<A, B>
  11. typealiastypealias Key = A
  12. typealiastypealias Value = B
class LRUCache<A, B> where A: Swift.Hashable {
    let capacity: Swift.Int
    var nodeMap: [A : IntelligencePlatform.LRUCacheNode<A, B>]
    let sentinel: IntelligencePlatform.LRUCacheNode<A, B>

    init(capacity: Swift.Int)

    final func createOrGet(_: A, initializer: () throws -> B) throws -> B
    final func get(_: A) -> B?
    final func set(_: B, forKey: A)
    final func clear()
    final func remove(key: A)

    deinit
}