Skip to content

Commit

Permalink
add MessageCache and DomainNode, based on peewee ORM & SQLite
Browse files Browse the repository at this point in the history
  • Loading branch information
MHHukiewitz committed Sep 5, 2023
1 parent ec518b5 commit 26146b7
Show file tree
Hide file tree
Showing 6 changed files with 1,317 additions and 0 deletions.
3 changes: 3 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ testing =
black
isort
flake8
peewee
mqtt =
aiomqtt<=0.1.3
certifi
Expand All @@ -103,6 +104,8 @@ ledger =
ledgereth==0.9.0
docs =
sphinxcontrib-plantuml
cache =
peewee

[options.entry_points]
# Add here console scripts like:
Expand Down
9 changes: 9 additions & 0 deletions src/aleph/sdk/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,15 @@ class Settings(BaseSettings):

CODE_USES_SQUASHFS: bool = which("mksquashfs") is not None # True if command exists

CACHE_DATABASE_PATH: Path = Field(
default=Path(":memory:"), # can also be :memory: for in-memory caching
description="Path to the cache database",
)
CACHE_FILES_PATH: Path = Field(
default=Path("cache", "files"),
description="Path to the cache files",
)

class Config:
env_prefix = "ALEPH_"
case_sensitive = False
Expand Down
Loading

0 comments on commit 26146b7

Please sign in to comment.