Skip to content

feat: sqlite3store context cancelation #256

@TobiasGleiter

Description

@TobiasGleiter

Sqlite3store context cancelation

Currently, the sqlite3store implements only not context aware funcs for example Find or Commit.

Proposal

Implement context aware funcs to handle timeouts and cancelations gracefully.

I suggest adding the following funcs:

  • FindCtx(ctx context.Context, token string) ([]byte, bool, error)
  • CommitCtx(ctx context.Context, token string, b []byte, expiry time.Time) error
  • DeleteCtx(ctx context.Context, token string) error
  • AllCtx(ctx context.Context) (map[string][]byte, error)

And altering the existing internal funcs:

  • deleteExpiredCtx(ctx context.Context) error

See other

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions