-
Notifications
You must be signed in to change notification settings - Fork 173
Merge Caches with Backends #1011
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
MemoryBackend
into MemoryCache
, MemcachedBackend
into MemcachedCache
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It'd be good to have the relevant changes separately from the typing changes...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we also omit the **kwargs TODO?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just leave it as is?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done!
see: #1024
# Conflicts: # aiocache/backends/valkey.py
key: bytes, | ||
encoding: str = "utf-8", | ||
_conn: Union[_Conn, None] = None, | ||
) -> Union[str, None]: ... |
Check notice
Code scanning / CodeQL
Statement has no effect Note
@overload | ||
async def _get( | ||
self, key: bytes, encoding: None, _conn: Union[_Conn, None] = None | ||
) -> Union[bytes, None]: ... |
Check notice
Code scanning / CodeQL
Statement has no effect Note
keys: Iterable[bytes], | ||
encoding: str = "utf-8", | ||
_conn: Union[_Conn, None] = None, | ||
) -> list[Union[str, None]]: ... |
Check notice
Code scanning / CodeQL
Statement has no effect Note
keys: Iterable[bytes], | ||
encoding: None, | ||
_conn: Union[_Conn, None] = None, | ||
) -> list[Union[bytes, None]]: ... |
Check notice
Code scanning / CodeQL
Statement has no effect Note
key: str, | ||
encoding: str = "utf-8", | ||
_conn: Union[_Conn, None] = None, | ||
) -> Union[str, None]: ... |
Check notice
Code scanning / CodeQL
Statement has no effect Note
@overload | ||
async def _get( | ||
self, key: str, encoding: None, _conn: Union[_Conn, None] = None | ||
) -> Union[bytes, None]: ... |
Check notice
Code scanning / CodeQL
Statement has no effect Note
keys: list[str], | ||
encoding: str = "utf-8", | ||
_conn: Union[_Conn, None] = None, | ||
) -> list[Union[str, None]]: ... |
Check notice
Code scanning / CodeQL
Statement has no effect Note
keys: list[str], | ||
encoding: None, | ||
_conn: Union[_Conn, None] = None, | ||
) -> list[Union[bytes, None]]: ... |
Check notice
Code scanning / CodeQL
Statement has no effect Note
superseded by #1024 |
What do these changes do?
MemoryBackend
w/MemoryCache
.MemcachedBackend
w/MemcachedCache
.ValkeyBackend
w/ValkeyCache
....Cache
.Are there changes in behavior for the user?
Backend
classes removed.typing-extensions
now a required dependency before 3.11Related issue number
Fixes #684
Checklist