Persistence (Effect's effect/persistence): key-value stores,
requests whose outcomes are stored, and caches over them.
key_value_store:KeyValueStore, a string-keyed store of text and bytes in memory, files, SQL or any text mapping, and schema-typed stores.persistable:Persistablerequests, which carry the schemas of their success and error and aprimary_key().persistence:Persistence, request outcomes stored by those schemas in memory, aKeyValueStoreor SQL.persisted_cache:PersistedCache, aCachein front of a store.persisted_queue:PersistedQueue, durable at-least-once queues in memory, SQL or Redis.user_directories:UserDirectories, where a program keeps its files per user.rate_limiter:RateLimiter, limits per key by fixed window or token bucket, and adaptive limits learned from429responses.circuit_breaker:CircuitBreaker, stops calling a key that keeps failing.redis: theRedisservice the Redis stores run on, made over a client byredis.make;redis_py(extrapyfect-dev[redis], imported on its own) provides it on redis-py.
RequestResolver.persisted stores a resolver's outcomes.
Re-exports#
- From
pyfect.persistence.circuit_breaker:CircuitBreaker,CircuitBreakerError - From
pyfect.persistence.key_value_store:KeyValueStore,KeyValueStoreError - From
pyfect.persistence.persistable:Persistable - From
pyfect.persistence.persisted_cache:PersistedCache - From
pyfect.persistence.persisted_queue:PersistedQueue,PersistedQueueError - From
pyfect.persistence.persistence:BackingPersistence,Persistence - From
pyfect.persistence.rate_limiter:RateLimiter,RateLimiterError - From
pyfect.persistence.redis:Redis,RedisError - From
pyfect.persistence.user_directories:UserDirectories