Skip to content

Instantly share code, notes, and snippets.

@aramkoukia
Created January 7, 2018 00:45
Show Gist options
  • Save aramkoukia/413bb7adfe25afbc0e8aa400915cf3b5 to your computer and use it in GitHub Desktop.
Save aramkoukia/413bb7adfe25afbc0e8aa400915cf3b5 to your computer and use it in GitHub Desktop.
User Repository Interface
using System.Collections.Generic;
namespace CachingAspectOrientedImplemetation
{
public interface IUserRepository
{
[Cache("key")]
IEnumerable<string> GetUsers();
string GetUsers(string id);
[InvalidateCache("key")]
bool UpdateUser(string username);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment