Skip Navigation
InitialsDiceBearhttps://github.com/dicebear/dicebearhttps://creativecommons.org/publicdomain/zero/1.0/„Initials” (https://github.com/dicebear/dicebear) by „DiceBear”, licensed under „CC0 1.0” (https://creativecommons.org/publicdomain/zero/1.0/)DU
Posts
0
Comments
1
Joined
8 mo. ago
  • @baris

    1. I want to cache content for 10 minutes, so I set it like this, right?
     undefined
        
    await cache.set(cacheKey, content, 600);
    
    
    
      

    However, this method doesn’t work

    1. But the following method works, though I’m not sure how long the cache lasts:
     undefined
        
    await cache.set(cacheKey, content);
    
    
      

    How does the default cache duration work, and why doesn’t the first method work?