-
Notifications
You must be signed in to change notification settings - Fork 192
Open
Description
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) errorDeleteCtx(ctx context.Context, token string) errorAllCtx(ctx context.Context) (map[string][]byte, error)
And altering the existing internal funcs:
deleteExpiredCtx(ctx context.Context) error
See other
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels