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
/
redis.d.ts
5 lines
(4 loc)
•
256 B
TypeScript
View Raw
1
2
3
4
5
import
{
IncomingMessage
as
Request
}
from
'http'
;
import
{
LRUResponse
}
from
'./types'
;
import
*
as
Redis
from
'ioredis'
;
export
declare
const
lruSend
:
(
redisInstance
?:
Redis
.
Redis
) =>
(
req
:
Request
,
res
:
LRUResponse
,
next
: () =>
void
) =>
Promise
<
void
>;