Skip to content

Commit

Permalink
FIX: remove +zstd from the quickstart example
Browse files Browse the repository at this point in the history
Zstandard is available via the optional extra, having it in the quickstart confuses some people.
  • Loading branch information
eigenein committed Feb 2, 2023
1 parent cc5201d commit 76ccd79
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ from cachetory.caches.async_ import Cache


cache = Cache[int, bytes](
serializer=serializers.from_url("pickle+zstd://?pickle-protocol=4&compression-level=3"),
serializer=serializers.from_url("pickle://?pickle-protocol=4"),
backend=async_backends.from_url("redis://localhost:6379"),
)
async with cache:
Expand All @@ -31,7 +31,7 @@ from cachetory.caches.sync import Cache


cache = Cache[int, bytes](
serializer=serializers.from_url("pickle+zstd://"),
serializer=serializers.from_url("pickle://"),
backend=sync_backends.from_url("redis://localhost:6379"),
)
with cache:
Expand Down

0 comments on commit 76ccd79

Please sign in to comment.