Mercurial
view asyncio_threads/database/main.py @ 67:6626ec933933
[Seobeo] Separated out Client Server logic. Created test tools.
| author | June Park <parkjune1995@gmail.com> |
|---|---|
| date | Wed, 24 Dec 2025 09:15:55 -0800 |
| parents | 46daba6e3cf4 |
| children |
line wrap: on
line source
class Database: def __init__(self): self.db = {} self.state = 'idle' def set(self, key, value): self.db[key] = value def get(self, key): return self.db[key] def unset(self, key): del self.db[key]