core.cache

Create 3-arg version of lookup

Details

  • Type: Task Task
  • Status: Resolved Resolved
  • Priority: Major Major
  • Resolution: Completed
  • Affects Version/s: None
  • Fix Version/s: None
  • Component/s: None
  • Labels:
  • Approval:
    Ok

Description

Currently, lookup comes in only the 2-arg flavor (i.e. gimme a key and I'll give you a value or nil). The issue with this is that nil is potentially a legal value. Therefore, the 3-arg version logic is the same as the 3-arg `assoc` (.lookup this key not-found).

This change should propagate to all of the existing cache impls.

Activity

Hide
Fogus added a comment -

Added in f4450a039ef703ce62c61dd497aafed73194f1c2

Show
Fogus added a comment - Added in f4450a039ef703ce62c61dd497aafed73194f1c2
Fogus made changes -
Field Original Value New Value
Resolution Completed [ 1 ]
Approval Ok [ 10007 ]
Status Open [ 1 ] Resolved [ 5 ]

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: