@void-cache/memory
TypeScript icon, indicating that this package has built-in type declarations

0.1.3 • Public • Published

@void-cache/memory

npm (scoped)

void-cache 内存 实现

🇨🇳国内用户可访问国内镜像

直接使用

Demo

import {memoryCache} from '@void-cache/memory'

memoryCache.get('foo')
memoryCache.set('foo', 'bar')
memoryCache.has('foo')
memoryCache.clear()
memoryCache.remove('foo')

创建一个新实例使用

Demo

import {createMemoryCache} from '@void-cache/memory'

export const store = createMemoryCache()

store.get('foo')
store.set('foo', 'bar')
store.has('foo')
store.clear()
store.remove('foo')

Readme

Keywords

none

Package Sidebar

Install

npm i @void-cache/memory

Weekly Downloads

1

Version

0.1.3

License

MIT

Unpacked Size

4.23 kB

Total Files

6

Last publish

Collaborators

  • whitekite