Skip to content

[Feat]: Better scoped DistributedCacheTaskStore #192

@ionmincu

Description

@ionmincu

Is your feature request related to a problem? Please describe.

I would like some way to make DistributedCacheTaskStore scoped to an organization or a user.

We are building an application that will host multiple agents for multiple organizations / users.

I would like some way of scoping some tasks to an organization / user. A simple way of doing this is make this service Scoped and configure it something like BuildTaskCacheKey(string taskId) => $"{httpContext. GetOrganization()}::task:{taskId}";.

Describe the solution you'd like

Allow some way to overwrite

    static string BuildTaskCacheKey(string taskId) => $"task:{taskId}";

    static string BuildPushNotificationsCacheKey(string taskId) => $"task-push-notification:{taskId}";

Describe alternatives you've considered

No response

Additional context

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct

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