UNPKG
lru-send
Version:
latest (0.1.3)
0.1.3
0.1.2
0.1.1
0.0.3
0.0.2
0.0.1
0.0.0
LRU-based caching middleware for Node.js
github.com/tinyhttp/lru-send
tinyhttp/lru-send
lru-send
/
dist
/
index.d.ts
5 lines
(4 loc)
•
249 B
TypeScript
View Raw
1
2
3
4
5
import
{
IncomingMessage
as
Request
}
from
'http'
;
import
{
LRUResponse
}
from
'./types'
;
import
LRU
from
'quick-lru'
;
export
declare
const
lruSend
:
(
lruInstance
?: LRU<
string
,
unknown
>
) =>
(
req
:
Request
,
res
:
LRUResponse
,
next
: () =>
void
) =>
void
;