22 lines
554 B
Python
22 lines
554 B
Python
#!/usr/bin/env python3
|
|
# -*- coding: utf-8 -*-
|
|
|
|
from typing import Self, Optional, Any
|
|
from abc import ABC, abstractmethod
|
|
|
|
class SessionsManagerInterfaces(ABC):
|
|
|
|
@abstractmethod
|
|
def update(self:Self) -> None:pass
|
|
|
|
@abstractmethod
|
|
def reset(self:Self) -> None:pass
|
|
|
|
@abstractmethod
|
|
def get(self:Self, id:str, key:str, default:Optional[Any] = None) -> Any|None:pass
|
|
|
|
@abstractmethod
|
|
def set(self:Self, id:str, key:str, value:Any|None) -> bool:pass
|
|
|
|
@abstractmethod
|
|
def remove(self:Self, id:str) -> bool:pass |