mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
18 lines
273 B
TypeScript
18 lines
273 B
TypeScript
import * as CatbotRedis from 'catbox-redis';
|
|
|
|
const cache = new CatbotRedis<string>({
|
|
host: 'localhost',
|
|
partition: 'test',
|
|
port: 2018,
|
|
});
|
|
|
|
cache.get({
|
|
segment: 'test',
|
|
id: 'test',
|
|
});
|
|
|
|
cache.set({
|
|
segment: 'test',
|
|
id: 'test',
|
|
}, 'test', 123);
|