mirror of
https://github.com/expo/entity.git
synced 2026-11-14 09:58:09 -10:00
Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b61341057b |
No files matched your search
@@ -8,7 +8,7 @@ import {
|
|||||||
import GenericLocalMemoryCacher, { LocalMemoryCache } from './GenericLocalMemoryCacher';
|
import GenericLocalMemoryCacher, { LocalMemoryCache } from './GenericLocalMemoryCacher';
|
||||||
import LocalMemoryCacheAdapter from './LocalMemoryCacheAdapter';
|
import LocalMemoryCacheAdapter from './LocalMemoryCacheAdapter';
|
||||||
|
|
||||||
export class LocalMemoryCacheAdapterProvider implements IEntityCacheAdapterProvider {
|
export default class LocalMemoryCacheAdapterProvider implements IEntityCacheAdapterProvider {
|
||||||
// local memory cache adapters should be shared/reused across requests
|
// local memory cache adapters should be shared/reused across requests
|
||||||
static localMemoryCacheAdapterMap = new Map<string, LocalMemoryCacheAdapter<any>>();
|
static localMemoryCacheAdapterMap = new Map<string, LocalMemoryCacheAdapter<any>>();
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,10 @@
|
|||||||
|
/* eslint-disable tsdoc/syntax */
|
||||||
|
/**
|
||||||
|
* @packageDocumentation
|
||||||
|
* @module @expo/entity-cache-adapter-local-memory
|
||||||
|
*/
|
||||||
|
|
||||||
|
export { default as LocalMemoryCacheAdapter } from './LocalMemoryCacheAdapter';
|
||||||
|
export { default as LocalMemoryCacheAdapterProvider } from './LocalMemoryCacheAdapterProvider';
|
||||||
|
export { default as GenericLocalMemoryCacher } from './GenericLocalMemoryCacher';
|
||||||
|
export * from './GenericLocalMemoryCacher';
|
||||||
Reference in new issue
Block a user