Skip to content

Commit

Permalink
feat(api-base): temp decrease of cache's ttl (#192)
Browse files Browse the repository at this point in the history
  • Loading branch information
simon-the-shark committed Sep 4, 2024
1 parent 33e1a3e commit c0027f7
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
18 changes: 9 additions & 9 deletions lib/config/ttl_config.dart
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,15 @@ abstract class TtlStrategy {
static const _ttlDurations = UnmodifiableTtlKeyMap(
// TODO(simon-the-shark): specific values are yet ment to be accordingly adjusted.
academicCalendarRepository: day,
scienceClubDetailsRepository: thirtyDays,
scienceClubsRepository: thirtyDays,
tagsRepository: thirtyDays,
buildingsRepository: thirtyDays,
departmentsRepository: thirtyDays,
aboutUsRepository: thirtyDays,
departmentDetailsRepository: thirtyDays,
guideDetailsRepository: thirtyDays,
guideRepository: thirtyDays,
scienceClubDetailsRepository: day,
scienceClubsRepository: day,
tagsRepository: day,
buildingsRepository: day,
departmentsRepository: day,
aboutUsRepository: day,
departmentDetailsRepository: day,
guideDetailsRepository: day,
guideRepository: day,
);

static Duration get(TtlKey key) {
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ publish_to: "none" # Remove this line if you wish to publish to pub.dev
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
# In Windows, build-name is used as the major, minor, and patch parts
# of the product and file versions while build-number is used as the build suffix.
version: 0.12.0+30
version: 0.12.1+31

environment:
sdk: ">=3.3.0 <4.0.0"
Expand Down

0 comments on commit c0027f7

Please sign in to comment.