Skip to content
This repository has been archived by the owner on Mar 22, 2021. It is now read-only.

Feature/cache op results #2

Merged
merged 2 commits into from
Feb 1, 2020
Merged

Feature/cache op results #2

merged 2 commits into from
Feb 1, 2020

Commits on Feb 1, 2020

  1. ✨ Adds cache to returned op items

    To cache op list-items results I must first create a file everytime I get any
    return from the command itself.
    
    On this commit, I am creating the logic to save the return from op list-items
    into a given file for further usage.
    
    Now, I just need to add the logic to fetch from this file instead, if the file
    is new enought.
    odelucca committed Feb 1, 2020
    Configuration menu
    Copy the full SHA
    19dbcc6 View commit details
    Browse the repository at this point in the history
  2. ✨ Uses cache_file if available

    Now that I can cache the op list-items result, I need to use the cache instead
    of getting it online, if it exists. It is important to have a TTL on the cache
    file too.
    
    On this commit I'm going to add the logic to use the cache file (if applicable)
    and also create a rule to use it only when the cache is recent.
    
    Now, I've finished the feature and can start using it.
    odelucca committed Feb 1, 2020
    Configuration menu
    Copy the full SHA
    a9d853b View commit details
    Browse the repository at this point in the history