Skip to content

Commit

Permalink
expose base storage classes (#220)
Browse files Browse the repository at this point in the history
  • Loading branch information
ewilliamson-patreon committed Apr 4, 2024
1 parent 2e3cb5d commit b50597b
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Expand Up @@ -2,6 +2,7 @@

## Unrelesed

- Expose `AsyncBaseStorage` and `BaseStorage`. (#220)
- Prevent cache hits from resetting the ttl. (#215)

## 0.0.25 (26th March, 2024)
Expand Down
9 changes: 8 additions & 1 deletion hishel/_async/_storages.py
Expand Up @@ -33,7 +33,14 @@

logger = logging.getLogger("hishel.storages")

__all__ = ("AsyncFileStorage", "AsyncRedisStorage", "AsyncSQLiteStorage", "AsyncInMemoryStorage", "AsyncS3Storage")
__all__ = (
"AsyncBaseStorage",
"AsyncFileStorage",
"AsyncRedisStorage",
"AsyncSQLiteStorage",
"AsyncInMemoryStorage",
"AsyncS3Storage",
)

StoredResponse: TypeAlias = tp.Tuple[Response, Request, Metadata]

Expand Down
9 changes: 8 additions & 1 deletion hishel/_sync/_storages.py
Expand Up @@ -33,7 +33,14 @@

logger = logging.getLogger("hishel.storages")

__all__ = ("FileStorage", "RedisStorage", "SQLiteStorage", "InMemoryStorage", "S3Storage")
__all__ = (
"BaseStorage",
"FileStorage",
"RedisStorage",
"SQLiteStorage",
"InMemoryStorage",
"S3Storage",
)

StoredResponse: TypeAlias = tp.Tuple[Response, Request, Metadata]

Expand Down

0 comments on commit b50597b

Please sign in to comment.