Fixed #30759 -- Made cache.delete() return whether it succeeded.#11883
Conversation
|
Hello @MisterRios thank you for your PR! I think we should focus solely on |
|
Hi @charettes! Thanks for the feedback. |
b4e4f65 to
239bea9
Compare
|
@charettes I went with option one. Though I will follow up with options two and three, it seemed the easiest way, since this issue has some history: |
239bea9 to
2f5b824
Compare
|
@MisterRios Thanks for this patch 👍 I squashed commits, rebased from master, fixed release notes and documentation changes and pushed minor edits. |
2f5b824 to
94e44ce
Compare
Thanks Simon Charette for the review.
94e44ce to
efc3e32
Compare
I returned a tuple with (success, count), a la
update_or_createbut am not completely sure of this as the return value.Native Memcache returns a simple
TRUEorFALSEvalue, while native Redis returns an integer with the number of deleted keys, so it seems there is no set standard.