Opened 18 years ago
Closed 18 years ago
#3290 closed defect (fixed)
[patch] Dummy cache class doesn't conform to BaseCache interface
Reported by: | Owned by: | Jacob | |
---|---|---|---|
Component: | Core (Cache system) | Version: | |
Severity: | normal | Keywords: | |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
The Dummy cache (django.core.cache.backends.dummy) doesn't implement the BaseCache interface in two ways:
1) get() doesn't return the value of its default
argument.
2) get_many() doesn't return a dictionary.
This patch trivially fixes the Dummy class to behave properly.
Attachments (1)
Change History (3)
by , 18 years ago
Attachment: | 3290_DummyCache_patch.diff added |
---|
comment:1 by , 18 years ago
Summary: | Dummy cache class doesn't conform to BaseCache interface → [patch] Dummy cache class doesn't conform to BaseCache interface |
---|
comment:2 by , 18 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
(In [4308]) Fixed #3290: DummyCache now conforms to the BaseCache interface correctly. Thanks, Ned Batchelder.