Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
aooohan opened this issue May 13, 2024 · 0 comments
Open
Labels
enhancement New feature or request
Milestone

Comments

@aooohan
Copy link
Member

aooohan commented May 13, 2024

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 aooohan added the enhancement New feature or request label May 13, 2024
@aooohan aooohan added this to the 0.5.3 milestone May 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant