Files
test/sg_wechat_enterprise/we_api/session/__init__.py
2024-07-10 15:58:47 +08:00

24 lines
512 B
Python

# -*- coding: utf-8 -*-
from __future__ import absolute_import, unicode_literals
class SessionStorage(object):
def get(self, key, default=None):
raise NotImplementedError()
def set(self, key, value, ttl=None):
raise NotImplementedError()
def delete(self, key):
raise NotImplementedError()
def __getitem__(self, key):
self.get(key)
def __setitem__(self, key, value):
self.set(key, value)
def __delitem__(self, key):
self.delete(key)