
Research
Malicious fezbox npm Package Steals Browser Passwords from Cookies via Innovative QR Code Steganographic Technique
A malicious package uses a QR code as steganography in an innovative technique.
@types/cache-manager-ioredis
Advanced tools
TypeScript definitions for cache-manager-ioredis
npm install --save @types/cache-manager-ioredis
This package contains type definitions for cache-manager-ioredis (https://github.com/dabroek/node-cache-manager-ioredis).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/cache-manager-ioredis.
import { Cache, CacheOptions, CachingConfig, Store } from "cache-manager";
import * as IORedis from "ioredis";
declare const methods: CacheManagerIORedis.RedisStoreConstructor;
export = methods;
export {};
declare module "cache-manager" {
function caching(IConfig: CacheManagerIORedis.RedisStoreClusterConfig): CacheManagerIORedis.ClusterCache;
function caching(IConfig: CacheManagerIORedis.RedisStoreSingleNodeConfig): CacheManagerIORedis.SingleNodeCache;
function caching(IConfig: StoreConfig & CacheOptions): Cache;
}
declare namespace CacheManagerIORedis {
interface SingleNodeCache extends Cache {
store: RedisSingleNodeStore;
}
interface ClusterCache extends Cache {
store: RedisClusterStore;
}
interface RedisStoreConstructor {
create:
| ((...options: RedisStoreSingleNodeConfig[]) => RedisSingleNodeStore)
| ((...options: RedisStoreClusterConfig[]) => RedisClusterStore);
}
type RedisStoreSingleNodeConfig = CachingConfig & IORedis.RedisOptions & {
store: RedisStoreConstructor;
max?: number | undefined;
} & CacheOptions;
type RedisStoreClusterConfig = CachingConfig & {
store: RedisStoreConstructor;
max?: number | undefined;
clusterConfig: ClusterOptions;
} & CacheOptions;
interface RedisStore extends Store {
getClient(): IORedis.Redis | IORedis.Cluster;
name: "redis";
isCacheableValue(value: any): boolean;
del(...args: any[]): Promise<any>;
reset(...args: any[]): Promise<any>;
keys(...args: any[]): Promise<any>;
ttl(...args: any[]): Promise<any>;
}
interface RedisSingleNodeStore extends RedisStore {
getClient(): IORedis.Redis;
}
interface RedisClusterStore extends RedisStore {
getClient(): IORedis.Cluster;
}
interface ClusterOptions {
nodes: IORedis.ClusterNode[];
options: IORedis.ClusterOptions;
}
}
These definitions were written by Yi Hong.
FAQs
TypeScript definitions for cache-manager-ioredis
We found that @types/cache-manager-ioredis demonstrated a healthy version release cadence and project activity because the last version was released less than 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.
Research
A malicious package uses a QR code as steganography in an innovative technique.
Research
/Security News
Socket identified 80 fake candidates targeting engineering roles, including suspected North Korean operators, exposing the new reality of hiring as a security function.
Application Security
/Research
/Security News
Socket detected multiple compromised CrowdStrike npm packages, continuing the "Shai-Hulud" supply chain attack that has now impacted nearly 500 packages.