BloomFilter Object¶
- token¶
Check out the token byte string.
- __init__(self , capability:int = 4096):
Sets the initial value of the blacklist load capacity. Needs to recompile your self if changed, to keep c-plugin works fine.
- hit(self, char: bytes) bool:¶
Check if a byte string is in the blacklist.
- update(self, char: bytes) None:¶
Put a byte string into the blacklist.
- refresh(self) None:¶
Reset the blacklist to empty.