Mercurial
view asyncio_threads/database/main.py @ 151:c033667da5f9 hg-web
Merging latest merge into hg-web
| author | June Park <parkjune1995@gmail.com> |
|---|---|
| date | Sat, 10 Jan 2026 13:35:09 -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]