Skip to content

Commit

Permalink
Pass app to cachelib
Browse files Browse the repository at this point in the history
  • Loading branch information
Lxstr committed Mar 8, 2024
1 parent 3fac5b7 commit 905c53e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/flask_session/cachelib/cachelib.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
from typing import Optional

from cachelib.file import FileSystemCache
from flask import Flask

from .._utils import total_seconds
from ..base import ServerSideSession, ServerSideSessionInterface
Expand All @@ -29,6 +30,7 @@ class CacheLibSessionInterface(ServerSideSessionInterface):

def __init__(
self,
app: Flask = None,
client: Optional[FileSystemCache] = Defaults.SESSION_CACHELIB,
key_prefix: str = Defaults.SESSION_KEY_PREFIX,
use_signer: bool = Defaults.SESSION_USE_SIGNER,
Expand Down

0 comments on commit 905c53e

Please sign in to comment.