using System.Threading.Tasks;
using BlueWest.Data.Application;
using BlueWest.WebApi.Context.Users;
using Microsoft.Extensions.Hosting;
namespace BlueWest.WebApi
{
///
/// Methods for handling session cache data.
///
public interface ISessionCache : IHostedService
{
///
/// Gets a Bearer By Access Token Id
///
///
///
Task GetBearerByAccessTokenId(string sessionTokenId);
///
/// Gets a Session Token by Id.
///
///
///
Task GetSessionTokenByIdAsync(string tokenId);
///
/// Create a new session token
///
///
Task AddSessionToken(SessionToken token);
///
/// Save Cache
///
///
Task SaveAsync();
///
/// Save Cache
///
///
void Save();
}
}