Installation
npm install --save @types/cassandra-store
Summary
This package contains type definitions for cassandra-store (https://github.com/webcc/cassandra-store).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/cassandra-store.
index.d.ts
/// <reference types="express" />
import { Client, ClientOptions, EmptyCallback } from "cassandra-driver";
import { SessionData, Store } from "express-session";
interface CassandraStoreOptions {
table: string;
clientOptions: ClientOptions;
client?: Client | null | undefined;
}
export = CassandraStore;
declare class CassandraStore extends Store {
private _client: Client;
private _clientOptions: ClientOptions;
constructor(opts: CassandraStoreOptions, callback?: EmptyCallback);
get client(): Client;
set client(value: Client);
get clientOptions(): ClientOptions;
set clientOptions(value: ClientOptions);
get table(): string;
set table(value: string);
get(sid: string, callback: (err: any, session?: SessionData | null) => void): void;
set(sid: string, session: SessionData, callback?: (err?: any) => void): void;
destroy(sid: string, callback?: (err?: any) => void): void;
all(callback: (err: any, obj?: SessionData[] | { [sid: string]: SessionData } | null) => void): void;
length(callback: (err: any, length: number) => void): void;
clear(callback?: (err?: any) => void): void;
touch(sid: string, session: SessionData, callback?: () => void): void;
}
Additional Details
- Last updated: Mon, 06 Nov 2023 22:41:05 GMT
- Dependencies: @types/express, @types/express-session, cassandra-driver
Credits
These definitions were written by .