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

Method get

src/Adapters/Cache/RedisCacheAdapter.js:44–56  ·  view source on GitHub ↗
(key)

Source from the content-addressed store, hash-verified

42 }
43
44 async get(key) {
45 debug('get', { key });
46 try {
47 await this.queue.enqueue(key);
48 const res = await this.client.get(key);
49 if (!res) {
50 return null;
51 }
52 return JSON.parse(res);
53 } catch (err) {
54 logger.error('RedisCacheAdapter error on get', { error: err });
55 }
56 }
57
58 async put(key, value, ttl = this.ttl) {
59 value = JSON.stringify(value);

Callers

nothing calls this directly

Calls 3

errorMethod · 0.80
debugFunction · 0.70
enqueueMethod · 0.45

Tested by

no test coverage detected