MCPcopy Create free account
hub / github.com/parse-community/parse-server / constructor

Method constructor

src/Adapters/Cache/InMemoryCache.js:4–7  ·  view source on GitHub ↗
({ ttl = DEFAULT_CACHE_TTL })

Source from the content-addressed store, hash-verified

2
3export class InMemoryCache {
4 constructor({ ttl = DEFAULT_CACHE_TTL }) {
5 this.ttl = ttl;
6 this.cache = Object.create(null);
7 }
8
9 get(key) {
10 const record = this.cache[key];

Callers

nothing calls this directly

Calls 1

createMethod · 0.80

Tested by

no test coverage detected