MCPcopy
hub / github.com/wechatpy/wechatpy / MemoryStorage

Class MemoryStorage

wechatpy/session/memorystorage.py:6–20  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4
5
6class MemoryStorage(SessionStorage):
7
8 def __init__(self):
9 self._data = {}
10
11 def get(self, key, default=None):
12 return self._data.get(key, default)
13
14 def set(self, key, value, ttl=None):
15 if value is None:
16 return
17 self._data[key] = value
18
19 def delete(self, key):
20 self._data.pop(key, None)

Callers 2

__init__Method · 0.90
__init__Method · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…