diff options
author | Paul Renvoise <PaulRenvoise@users.noreply.github.com> | 2020-04-24 17:48:39 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-24 08:48:39 -0700 |
commit | 465089a816686720aa9934eac964789da82da7a0 (patch) | |
tree | 5ec2b2995831edd941ceae82de148e33a44a7843 /.github | |
parent | 4bca1bb96a8740301835f829dcd9c7a03077eca5 (diff) | |
download | pymemcache-465089a816686720aa9934eac964789da82da7a0.tar.gz |
Align Client and MockMemcacheClient to ease third-party testing #279
- Added `socket_module`, and `tls_context` parameters `__init__()`
- Added `socket_module`, `sock`, and `tls_context` attributes
- Added `replace()`
- Added `cas()` (which raises `MemcacheClientError` as `cas_enabled` is false for this `MockMemcacheClient`)
- Added `touch()`
- Added `cache_memlimit()`
- Added `version()`
- Added `flush_all()` (internally calling `clear()`)
- Added `quit()`
- Added `close()`
- Refactored `set()` to have default `flags` set to None
- Refactored `set_many()` to follow `Client`'s implementation (always return `[]` when `noreply` is True, else return the keys that were not inserted)
- Refactored `decr()` to have a similar implementation to `incr()` (also taking in account `noreply`'s value)
- Refactored `add()` to take in account `noreply`'s value
- Refactored `get_many()` to support `expire` and `flags`
- Refactored `stats()` to accepts arguments
- Refactored `append()`, `prepend()`, `set_many()`, and `add()` to forward `expire`, `noreply`, and `flags` to their internal call to `set()`
- Set all default value of `noreply` to True when it was None (since in Client, it uses `default_noreply` (set to True), when `noreply` is None)
- Set all default value of `expire` to 0
Diffstat (limited to '.github')
0 files changed, 0 insertions, 0 deletions