Opened 18 years ago

Closed 18 years ago

#3290 closed defect (fixed)

[patch] Dummy cache class doesn't conform to BaseCache interface

Reported by: Ned Batchelder <ned@…> 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)

3290_DummyCache_patch.diff (661 bytes ) - added by Ned Batchelder <ned@…> 18 years ago.

Download all attachments as: .zip

Change History (3)

by Ned Batchelder <ned@…>, 18 years ago

Attachment: 3290_DummyCache_patch.diff added

comment:1 by Ned Batchelder <ned@…>, 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 Jacob, 18 years ago

Resolution: fixed
Status: newclosed

(In [4308]) Fixed #3290: DummyCache now conforms to the BaseCache interface correctly. Thanks, Ned Batchelder.

Note: See TracTickets for help on using tickets.
Back to Top