-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy paththeine_core.pyi
34 lines (30 loc) · 1.29 KB
/
theine_core.pyi
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
from typing import Optional, Tuple, Any, Dict, List
class TlfuCore:
def __init__(self, size: int): ...
def set(self, key: str, ttl: int) -> Tuple[int, Optional[int], Optional[str]]: ...
def remove(self, key: str) -> Optional[int]: ...
def access(self, key: str) -> Optional[int]: ...
def advance(self, cache: List, sentinel: Any, kh: Dict, hk: Dict): ...
def clear(self): ...
def len(self) -> int: ...
class ClockProCore:
def __init__(self, size: int): ...
def set(
self, key: str, ttl: int
) -> Tuple[int, Optional[int], Optional[int], Optional[str]]: ...
def remove(self, key: str) -> Optional[int]: ...
def access(self, key: str) -> Optional[int]: ...
def advance(self, cache: List, sentinel: Any, kh: Dict, hk: Dict): ...
def clear(self): ...
def len(self) -> int: ...
class LruCore:
def __init__(self, size: int): ...
def set(self, key: str, ttl: int) -> Tuple[int, Optional[int], Optional[str]]: ...
def remove(self, key: str) -> Optional[int]: ...
def access(self, key: str) -> Optional[int]: ...
def advance(self, cache: List, sentinel: Any, kh: Dict, hk: Dict): ...
def clear(self): ...
def len(self) -> int: ...
class BloomFilter:
def put(self, key: str): ...
def contains(self, key: str) -> bool: ...