From 7c3abd687e139b958c28b102bcc90e27248d84e1 Mon Sep 17 00:00:00 2001 From: Francis Pion Date: Fri, 20 Oct 2023 00:53:00 -0400 Subject: [PATCH] Fixed cache duration and completed CHANGELOG. (#29) --- CHANGELOG.md | 12 +++++++++++- .../Caching/CacheService.cs | 2 +- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2a38163..8c74a28 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,16 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). -## Unreleased +## [Unreleased] Nothing yet. + +## [1.0.0] - 2023-10-20 + +### Added + +- Implemented a monitored, secure REST/GraphQL API with Event Sourcing. +- Implemented a Vue3 Web application. + +[unreleased]: https://github.com/Utar94/Wishes/compare/v1.0.0...HEAD +[1.0.0]: https://github.com/Utar94/Wishes/releases/tag/v1.0.0 diff --git a/backend/src/Logitar.Wishes.Infrastructure/Caching/CacheService.cs b/backend/src/Logitar.Wishes.Infrastructure/Caching/CacheService.cs index 4f7a597..fcfbf55 100644 --- a/backend/src/Logitar.Wishes.Infrastructure/Caching/CacheService.cs +++ b/backend/src/Logitar.Wishes.Infrastructure/Caching/CacheService.cs @@ -34,7 +34,7 @@ public void SetApiKey(string xApiKey, ApiKey apiKey) XApiKey instance = XApiKey.Decode(xApiKey); ProtectedCache cached = new(apiKey, instance.Secret); - SetItem(GetApiKeyKey(instance.Id), cached, TimeSpan.FromMinutes(1)); + SetItem(GetApiKeyKey(instance.Id), cached, TimeSpan.FromMinutes(5)); } private static string GetApiKeyKey(string id) => $"ApiKey:Id:{id}";