Skip to content

feat: add Session.cache_backend property - #811

Open
dokson wants to merge 1 commit into
lexiforest:mainfrom
dokson:feat/cache-backend-property
Open

feat: add Session.cache_backend property#811
dokson wants to merge 1 commit into
lexiforest:mainfrom
dokson:feat/cache-backend-property

Conversation

@dokson

@dokson dokson commented Jul 22, 2026

Copy link
Copy Markdown
Contributor

After 49566d7 the Session(cache=60) shorthand leaves no public handle to the backend (no clear(), no expires). This adds a read-only cache_backend property, None when caching is disabled. Named so it doesn't trip the hasattr(session, "cache") convention from #809.

Checklist

  • I have manually reviewed the changes and fully understand the code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant