Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't specify the bucket when using Session and Caching #62

Open
dgauerke opened this issue Jan 30, 2019 · 1 comment
Open

Can't specify the bucket when using Session and Caching #62

dgauerke opened this issue Jan 30, 2019 · 1 comment

Comments

@dgauerke
Copy link

I was trying to use both features and put the data into separate buckets, but it always seems to take the last bucket registered. Here is the sample code that I've tried

        services.AddDistributedCouchbaseCache("WebSessions", opt => { });
        services.AddSession();

        services.AddCouchbaseSession(opt =>
        {
            opt.Cookie.Name = ".Sample.Cookie";
            opt.IdleTimeout = new TimeSpan(0, 0, 20, 0);
        });

        services.AddDistributedCouchbaseCache("WebCache", opt => { });

Is something like this possible? Or can this feature be added?
Thanks,
David Gauerke

@jeffrymorris
Copy link

@dgauerke -

Thanks for sharing - its expected to only use a single bucket for caching. It might be possible to add this in, but would have to look deeper into the details.

-Jeff

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants