Code

Opened 7 years ago

Closed 7 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: UI/UX:

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@…> 7 years ago.

Download all attachments as: .zip

Change History (3)

Changed 7 years ago by Ned Batchelder <ned@…>

comment:1 Changed 7 years ago by Ned Batchelder <ned@…>

  • Summary changed from Dummy cache class doesn't conform to BaseCache interface to [patch] Dummy cache class doesn't conform to BaseCache interface

comment:2 Changed 7 years ago by jacob

  • Resolution set to fixed
  • Status changed from new to closed

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

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.