vfox icon indicating copy to clipboard operation
vfox copied to clipboard

[Feature]: Add a new module `vfox.cache` to allow plugins to cache something.

Open aooohan opened this issue 1 year ago • 0 comments

2. What is your expected outcome?

Something like below:

local c = require('vfox.cache')


local cache = c.new('path')

--- -1 : never expired
cache.set(key, value, expire_time)

local value = cache.get(key)

local success = cache.remove(key)

aooohan avatar May 13 '24 08:05 aooohan