[Corona] Replace Model interface with base class

Review Request #832 — Created May 9, 2022 and submitted

pprkut
Lunr
b3ec7ac...
lunr
Replace the Model interface with a base class, containing
simple cache helper methods.

This is effectively a replacement of Lunr\Cache, but differs in key
areas:

- Error handling moves to the PSR-6 implementation
- We only allow string keys for cache items
- By not allowing NULL values in the cache, we can avoid calling
  isHit()

Unit tests

  • 0
  • 0
  • 1
  • 0
  • 1
Description From Last Updated
smillernl
  1. 
      
  2. src/Lunr/Corona/Model.php (Diff revision 1)
     
     

    if you're doing parameter types, let's do : bool too

  3. 
      
smillernl
  1. 
      
  2. 
      
pprkut
Review request changed

Status: Closed (submitted)

Change Summary:

Merged into master

Loading...