
Product
Introducing Webhook Events for Alert Changes
Add real-time Socket webhook events to your workflows to automatically receive software supply chain alert changes in real time.
elysia-cache
Advanced tools
Plugin for elysia that add support for lru cache.
bun add elysia-cache
import { Elysia } from 'elysia'
import { cache } from 'elysia-cache'
const app = new Elysia()
.use(cache())
.get('/set', ({ query, cache }) => {
const key = query.key
const value = query.value
cache.set(key, value)
return new Response('done')
})
.get('/get', ({ query, cache }) => {
const key = query.key
const value = cache.get(key)
return {
value: value
}
})
.get('/flush', ({ cache }) => cache.clear())
.listen(8080)
Below are configurable properties for using LRU cache plugin.
The maximum object that can be stored.
Below are the value added to the handler.
A function to check cache
Type:
has(key: string) => boolean
A function to delete cache from given key
Type:
remove(key: string) => void
A function to retrieve value in the cache, return null if the value is not in the cache.
Type:
get(key: string | number) => any
A function to update cache value from given key
Type:
set(key: string | number, value: any) => void
A function to flush all cache
Type:
clear() => void
FAQs
Plugin for Elysia that for LRU Caching
We found that elysia-cache demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Add real-time Socket webhook events to your workflows to automatically receive software supply chain alert changes in real time.

Security News
ENISA has become a CVE Program Root, giving the EU a central authority for coordinating vulnerability reporting, disclosure, and cross-border response.

Product
Socket now scans OpenVSX extensions, giving teams early detection of risky behaviors, hidden capabilities, and supply chain threats in developer tools.