Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/apollographql/apollo-cache-persist
/ functions
Functions
105 in github.com/apollographql/apollo-cache-persist
⨍
Functions
105
◇
Types & classes
51
↓ 11 callers
Method
getItem
(key: string)
src/storageWrappers/MMKVStorageWrapper.ts:48
↓ 10 callers
Method
extract
()
src/__mocks__/MockCache.ts:16
↓ 7 callers
Method
write
(level: LogLevel, message: any[])
src/Log.ts:32
↓ 5 callers
Method
read
()
src/Storage.ts:18
↓ 5 callers
Function
simulateWrite
({ result, operation, persistOptions = {}, }: { result: T; operation: DocumentNode; persistOptions
src/__mocks__/simulate.ts:43
↓ 4 callers
Method
info
(...message: any[])
src/Log.ts:42
↓ 4 callers
Method
persist
()
src/Persistor.ts:41
↓ 4 callers
Method
set
(key: string, value: string | null)
src/storageWrappers/IonicStorageWrapper.ts:26
↓ 4 callers
Function
simulateApp
({ result, operation, persistOptions = {}, }: { result: T; operation: DocumentNode; persistOptions
src/__mocks__/simulate.ts:13
↓ 3 callers
Method
error
(...message: any[])
src/Log.ts:50
↓ 3 callers
Method
get
(key: string)
src/storageWrappers/IonicStorageWrapper.ts:25
↓ 3 callers
Method
remove
(key: string)
src/storageWrappers/IonicStorageWrapper.ts:27
↓ 3 callers
Method
warn
(...message: any[])
src/Log.ts:46
↓ 2 callers
Method
emit
(level: LogLevel, message: any[])
src/Log.ts:17
↓ 2 callers
Method
purge
()
src/Storage.ts:26
↓ 2 callers
Method
removeItem
(key: string)
src/storageWrappers/MMKVStorageWrapper.ts:50
↓ 2 callers
Method
restore
(data: PersistedData<T>)
src/Cache.ts:25
↓ 2 callers
Method
restore
(data: PersistedData<T>)
src/__mocks__/MockCache.ts:26
↓ 2 callers
Method
restoreSync
()
src/persistCacheSync.ts:48
↓ 2 callers
Method
setItem
(key: string, value: string)
src/storageWrappers/MMKVStorageWrapper.ts:49
↓ 1 callers
Method
constructor
(options: Pick<ApolloPersistOptions<T, U>, 'serialize'>)
src/__mocks__/MockCache.ts:11
↓ 1 callers
Method
extract
()
src/Cache.ts:15
↓ 1 callers
Method
getItem
(key: string)
src/storageWrappers/LocalStorageWrapper.ts:30
↓ 1 callers
Method
getItem
(key: string)
src/storageWrappers/SessionStorageWrapper.ts:30
↓ 1 callers
Method
getItem
(key: string)
src/storageWrappers/AsyncStorageWrapper.ts:37
↓ 1 callers
Method
getItem
(key: string)
src/storageWrappers/LocalForageWrapper.ts:31
↓ 1 callers
Function
init
()
examples/web/src/App.tsx:79
↓ 1 callers
Method
purge
()
src/Persistor.ts:98
↓ 1 callers
Method
readSync
()
src/persistCacheSync.ts:58
↓ 1 callers
Method
removeItem
(key: string)
src/storageWrappers/LocalStorageWrapper.ts:14
↓ 1 callers
Method
removeItem
(key: string)
src/storageWrappers/LocalStorageWrapper.ts:32
↓ 1 callers
Method
removeItem
(key: string)
src/storageWrappers/MMKVWrapper.ts:26
↓ 1 callers
Method
removeItem
(key: string)
src/storageWrappers/SessionStorageWrapper.ts:14
↓ 1 callers
Method
removeItem
(key: string)
src/storageWrappers/SessionStorageWrapper.ts:32
↓ 1 callers
Method
removeItem
(key: string)
src/storageWrappers/AsyncStorageWrapper.ts:39
↓ 1 callers
Method
removeItem
(key: string)
src/storageWrappers/LocalForageWrapper.ts:36
↓ 1 callers
Method
restore
()
src/CachePersistor.ts:53
↓ 1 callers
Method
restoreSync
()
src/persistCacheSync.ts:33
↓ 1 callers
Method
setItem
(key: string, value: string)
src/storageWrappers/LocalStorageWrapper.ts:31
↓ 1 callers
Method
setItem
(key: string, value: string)
src/storageWrappers/SessionStorageWrapper.ts:31
↓ 1 callers
Method
setItem
(key: string, value: string | null)
src/storageWrappers/AsyncStorageWrapper.ts:38
↓ 1 callers
Method
setItem
( key: string, value: string | object | null, )
src/storageWrappers/LocalForageWrapper.ts:32
↓ 1 callers
Method
tailLogs
()
src/Log.ts:24
Function
App
()
examples/web/src/App.tsx:72
Function
Launches
()
examples/web/src/App.tsx:39
Method
constructor
(options: Pick<ApolloPersistOptions<T>, 'storage' | 'key'>)
src/Storage.ts:11
Method
constructor
( { log, cache, storage }: PersistorConfig<T>, options: Pick<ApolloPersistOptions<T>, 'maxSize' | 'per
src/Persistor.ts:21
Method
constructor
(options: ApolloPersistOptions<T>)
src/persistCacheSync.ts:23
Method
constructor
( { log, cache, storage }: PersistorConfig<T>, options: ApolloPersistOptions<T>, )
src/persistCacheSync.ts:41
Method
constructor
(options: ApolloPersistOptions<T>)
src/persistCacheSync.ts:54
Method
constructor
(options: Pick<ApolloPersistOptions<T>, 'cache' | 'serialize'>)
src/Cache.ts:8
Method
constructor
( { log, persistor }: TriggerConfig<T>, options: Pick<ApolloPersistOptions<T>, 'cache' | 'debounce' |
src/Trigger.ts:22
Method
constructor
(options: ApolloPersistOptions<T>)
src/CachePersistor.ts:16
Method
constructor
(options: Pick<ApolloPersistOptions<T>, 'debug'>)
src/Log.ts:10
Method
constructor
()
src/__mocks__/MockStorageSync.ts:6
Method
constructor
()
src/__mocks__/MockStorage.ts:6
Method
constructor
(storage: LocalStorageInterface)
src/storageWrappers/LocalStorageWrapper.ts:6
Method
constructor
(storage: MMKVStorageInterface)
src/storageWrappers/MMKVStorageWrapper.ts:17
Method
constructor
(storage: MMKVInterface)
src/storageWrappers/MMKVWrapper.ts:18
Method
constructor
(storage: IonicStorageInterface)
src/storageWrappers/IonicStorageWrapper.ts:6
Method
constructor
(storage: SessionStorageInterface)
src/storageWrappers/SessionStorageWrapper.ts:6
Method
constructor
(storage: AsyncStorageInterface)
src/storageWrappers/AsyncStorageWrapper.ts:18
Method
constructor
(storage: LocalForageInterface)
src/storageWrappers/LocalForageWrapper.ts:7
Method
getItem
(key: string)
src/__mocks__/MockStorageSync.ts:18
Method
getItem
(key: string)
src/__mocks__/MockStorage.ts:24
Method
getItem
(key: string)
src/storageWrappers/LocalStorageWrapper.ts:10
Method
getItem
(key: string)
src/storageWrappers/MMKVStorageWrapper.ts:21
Method
getItem
(key: string)
src/storageWrappers/MMKVWrapper.ts:22
Method
getItem
(key: string)
src/storageWrappers/IonicStorageWrapper.ts:10
Method
getItem
(key: string)
src/storageWrappers/SessionStorageWrapper.ts:10
Method
getItem
(key: string)
src/storageWrappers/AsyncStorageWrapper.ts:22
Method
getItem
(key: string)
src/storageWrappers/LocalForageWrapper.ts:11
Method
getLogs
* Info accessor.
src/CachePersistor.ts:81
Method
getLogs
()
src/Log.ts:28
Method
getSize
()
src/Storage.ts:30
Method
getSize
()
src/CachePersistor.ts:89
Function
listener
(state: string)
src/onAppBackground.native.ts:6
Function
onwarn
(message)
rollup.config.mjs:13
Method
pause
()
src/Trigger.ts:59
Method
pause
* Trigger controls.
src/CachePersistor.ts:65
Method
persist
* Manual persistence controls.
src/CachePersistor.ts:49
Function
persistCacheSync
(options: ApolloPersistOptions<T>)
src/persistCacheSync.ts:12
Function
persistenceMapper
(data: any)
src/__tests__/persistCache.ts:177
Method
purge
()
src/CachePersistor.ts:57
Method
remove
()
src/Trigger.ts:67
Method
remove
()
src/CachePersistor.ts:73
Method
removeItem
(key: string)
src/__mocks__/MockStorageSync.ts:14
Method
removeItem
(key: string)
src/__mocks__/MockStorage.ts:17
Method
removeItem
(key: string)
src/storageWrappers/MMKVStorageWrapper.ts:25
Method
removeItem
(key: string)
src/storageWrappers/IonicStorageWrapper.ts:14
Method
removeItem
(key: string)
src/storageWrappers/AsyncStorageWrapper.ts:26
Method
removeItem
(key: string)
src/storageWrappers/LocalForageWrapper.ts:15
Method
restore
()
src/Persistor.ts:77
Method
resume
()
src/Trigger.ts:63
Method
resume
()
src/CachePersistor.ts:69
Method
setItem
(key: string, data: string)
src/__mocks__/MockStorageSync.ts:10
Method
setItem
(key: string, data: string)
src/__mocks__/MockStorage.ts:10
Method
setItem
(key: string, value: string | null)
src/storageWrappers/LocalStorageWrapper.ts:18
Method
setItem
(key: string, value: string | null)
src/storageWrappers/MMKVStorageWrapper.ts:36
Method
setItem
(key: string, value: string | null)
src/storageWrappers/MMKVWrapper.ts:30
next →
1–100 of 105, ranked by callers