Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface SwCache<K, V>

Base interface for SmartWeave Cache implementors. Useful for simple, non block-height dependant caches

  • like contract's source code cache. See MemCache for example implementation.

Type parameters

  • K = string

    type of the cache key, defaults to string

  • V = any

    type of the cache value, default to any.

Hierarchy

  • SwCache

Implemented by

Index

Methods

clearAll

  • clearAll(): any

contains

  • contains(key: K): boolean

get

  • get(key: K): V

put

  • put(key: K, value: V): any

remove

  • remove(key: K): any

Generated using TypeDoc