Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
3
export
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
create
Method · 0.80
Tested by
no test coverage detected