@types/cassandra-store
TypeScript icon, indicating that this package has built-in type declarations

5.0.6 • Public • Published

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

Credits

These definitions were written by .

Readme

Keywords

none

Package Sidebar

Install

npm i @types/cassandra-store

Weekly Downloads

3

Version

5.0.6

License

MIT

Unpacked Size

5.18 kB

Total Files

5

Last publish

Collaborators

  • types