5.0.6 • Published 6 months ago
@types/cassandra-store v5.0.6
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
// Type definitions for cassandra-store 5.0
// Project: https://github.com/webcc/cassandra-store
// Definitions by: DefinitelyTyped <https://github.com/DefinitelyTyped>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 3.7
/// <reference types="express" />
import { Store, SessionData } from 'express-session';
import { ClientOptions, Client, EmptyCallback } from 'cassandra-driver';
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: Thu, 23 Dec 2021 23:34:22 GMT
- Dependencies: @types/express-session, @types/cassandra-driver, @types/express
- Global values: none
Credits
These definitions were written by DefinitelyTyped.