Skip to content

Provide ability to decorate or extend ICacheManager #176

@erizzo

Description

@erizzo

I want to add some behavior (and state) to the out-of-the-box ICacheManager implementation. Normally I'd just write my own class that implements the interface, has a private field of the interface type that's passed in to the constructor, and implement the interface methods as calls to that field.
The problem is that ICacheManager has 60+ methods, making it impractical to implement. My second thought was to extend BaseCacheManager, but that class is sealed.

So I need a lightweight way to decorate the cache manager, still exposing all (well, most) of its methods. Simplest suggestion I can think of is to un-seal BaseCacheManager, but I wonder why it was sealed in the first place - maybe there's more than meets the eye in that decision.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions