(self, key: str, value: Any, expires=0)
| 334 | return d |
| 335 | |
| 336 | def set(self, key: str, value: Any, expires=0): |
| 337 | key = cast(str, web.safestr(key)) |
| 338 | value = json.dumps(value) |
| 339 | stats.begin("memcache.set", key=key) |
| 340 | value = self.memcache.set(key, value, expires) |
| 341 | stats.end() |
| 342 | return value |
| 343 | |
| 344 | def add(self, key, value, expires=0): |
| 345 | key = web.safestr(key) |