Skip to content
This repository was archived by the owner on Dec 14, 2018. It is now read-only.
This repository was archived by the owner on Dec 14, 2018. It is now read-only.

Why should I use services.AddMemoryCache(); instead of services.AddDistributedMemoryCache(); #382

@cilerler

Description

@cilerler

I wonder why we may want to use In-Memory cache where we can use plain AddDistributedMemoryCache (no sql, no redis)?

I know the difference between MemoryCache and DistributedCache, the only part that I don't understand is if I can have same features IMemoryCache through IDistributedCache one, I can decorate my classes with IDistributedCache and it will be good for change, scale etc. Well, do I need those? maybe or maybe not, but my gut says there should be something fundamentally different between those two.

Please advise.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions