mirror of
https://github.com/aljazceru/nutshell.git
synced 2025-12-21 11:04:19 +01:00
* fast-api-cache setup * testing the cache * fix * still not working * asynccontextmanager * move test * use redis & custom caching setup (like CDK) * make format * poetry lock * fix format string + log when a cached response is found * log when a cahced response is found * fix tests * poetry lock * try tests on github * use docker compose * maybe we dont need docker * fix types * create_task instead of run * how about we start postgres * mint features * format * remove deprecated setex call * use global expiry for all cached routes * refactor feature map and set default to 1 week * refactor feature construction * Cache NUT-19 --------- Co-authored-by: callebtc <93376500+callebtc@users.noreply.github.com>
16 lines
237 B
Python
16 lines
237 B
Python
SWAP_NUT = 3
|
|
MINT_NUT = 4
|
|
MELT_NUT = 5
|
|
INFO_NUT = 6
|
|
STATE_NUT = 7
|
|
FEE_RETURN_NUT = 8
|
|
RESTORE_NUT = 9
|
|
SCRIPT_NUT = 10
|
|
P2PK_NUT = 11
|
|
DLEQ_NUT = 12
|
|
DETERMINSTIC_SECRETS_NUT = 13
|
|
HTLC_NUT = 14
|
|
MPP_NUT = 15
|
|
WEBSOCKETS_NUT = 17
|
|
CACHE_NUT = 19
|