Skip to content

Commit

Permalink
Fixed cache duration and completed CHANGELOG. (#29)
Browse files Browse the repository at this point in the history
  • Loading branch information
Utar94 authored Oct 20, 2023
1 parent 7f771eb commit 7c3abd6
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
12 changes: 11 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public void SetApiKey(string xApiKey, ApiKey apiKey)
XApiKey instance = XApiKey.Decode(xApiKey);
ProtectedCache<ApiKey> 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}";

Expand Down

0 comments on commit 7c3abd6

Please sign in to comment.