misp-galaxy/galaxy/lib/python3.12/site-packages/sponge/drivers/driver.py
2024-08-20 18:46:04 +02:00

35 lines
624 B
Python

#!/usr/bin/env python
# encoding: utf-8
"""
@author: william
@contact: 1342247033@qq.com
@site: http://www.xiaolewei.com
@file: driver.py
@time: 22/05/2018 16:12
"""
class Driver(object):
def get(self, key):
raise NotImplemented
def put(self, key, value, secs=0):
raise NotImplemented
def increase(self, key, value=1):
raise NotImplemented
def decrease(self, key, value=1):
raise NotImplemented
def forget(self, key):
raise NotImplemented
def forever(self, key, value):
raise NotImplemented
def flush(self):
raise NotImplemented