Skip to content

Commit dd6e0d9

Browse files
maxxiefjvc00kiemon5ter
authored andcommitted
allow from_uri SSL param options
1 parent 2f110dc commit dd6e0d9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/pyop/storage.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,10 +120,10 @@ class RedisWrapper(StorageBase):
120120
Supports JSON-serializable data types.
121121
"""
122122

123-
def __init__(self, db_uri, collection, ttl=None):
123+
def __init__(self, db_uri, collection, ttl=None, options=None):
124124
if not _has_redis:
125125
raise ImportError("redis module is required but it is not available")
126-
self._db = Redis.from_url(db_uri, decode_responses=True)
126+
self._db = Redis.from_url(db_uri, decode_responses=True, **options.get('redis_kwargs', {}))
127127
self._collection = collection
128128
if ttl is None or (isinstance(ttl, int) and ttl >= 0):
129129
self._ttl = ttl

0 commit comments

Comments
 (0)