API • Wiki • License • Roadmap • Contribute
How to use FiveM_Redis API
[[Get Redis Reference]]
local Cache = exports.fivem_redis:GetInterface();
[[Methods]]
-- Save data on Redis Cache
Cache.Save(key, value)
-- Get data from Redis Cache
Cache.GetCache(key, function(result)
print(result)
end)
-- Remove data with informed key from Redis Cache
Cache.Invalidate(key)
-- Invalidate all data with informed prefix from Redis Cache
Cache.InvalidatePrefix(prefix, function(result)
print(result)
end)
- See Install Instructions for detailed Instructions for install and use of Redis & RediSearch.
- Find on our roadmap the next steps of the project.
- Want to contribute? Follow these recommendations.