[Lunr] Corona: Add autocaching function

Review Request #877 — Created Oct. 14, 2022 and submitted

smillernl
Lunr
feature/corona/autocache
876
883, 882
lunr


  • 0
  • 0
  • 2
  • 1
  • 3
Description From Last Updated
There are no open issues
b.stoop
  1. Ship It!
  2. 
      
pprkut
  1. 
      
  2. src/Lunr/Corona/Tests/ModelCacheTest.php (Diff revision 1)
     
     
     
     
     
     
     
     
    The issue has been resolved. Show all issues

    Can you add a test for a callable that needs an argument?, like fn ($a) => $a . 'test' or some such

    I'm a bit unsure how call_user_func will have to deal with that.

  3. 
      
smillernl
pprkut
  1. 
      
  2. src/Lunr/Corona/Tests/ModelCacheTest.php (Diff revisions 1 - 2)
     
     
    The issue has been resolved. Show all issues

    style

  3. 
      
b.stoop
  1. 
      
  2. src/Lunr/Corona/Model.php (Diff revision 2)
     
     
    The issue has been dropped. Show all issues

    Some cases we need to set the ttl, better to add that here

    1. It's really just meant to be a convenience function, not an all encompassing replacement. I reluctantly added parameters, but anything else will have to be done in a different review.

  3. 
      
smillernl
Review request changed

Status: Closed (submitted)

Change Summary:

Pushed to master (1c9bcf6)
Loading...