-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix UUID batch request for invalid usernames (#128)
The UUID batch request now uses a different approach to check if all items were cached. # Changes - fix batch request for invalid usernames - remove deprecated settings --------- Co-authored-by: paul <[email protected]>
- Loading branch information
Showing
5 changed files
with
12 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ members = ["metrics", "metrics/metrics-macros"] | |
[package] | ||
name = "xenos" | ||
description = "Minecraft Profile Information Proxy" | ||
version = "0.6.0" | ||
version = "0.6.1" | ||
authors = [ | ||
"Joshua Dean Küpper <[email protected]>", | ||
"Paul Wagner <[email protected]>" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,7 +10,6 @@ cape = { exp = "PT10M", exp_empty = "PT5M" } | |
head = { exp = "PT10M", exp_empty = "PT5M" } | ||
|
||
[cache.redis] | ||
enabled = false | ||
address = "redis://username:[email protected]/0" # update if enabled | ||
|
||
[cache.redis.entries] | ||
|
@@ -20,9 +19,6 @@ skin = { ttl = "P3D", ttl_empty = "P1D" } | |
cape = { ttl = "P3D", ttl_empty = "P1D" } | ||
head = { ttl = "P3D", ttl_empty = "P1D" } | ||
|
||
[cache.moka] | ||
enabled = false | ||
|
||
[cache.moka.entries] | ||
uuid = { cap = 500, ttl = "PT1H", ttl_empty = "PT30M", tti = "PT1H", tti_empty = "PT30M" } | ||
profile = { cap = 300, ttl = "PT1H", ttl_empty = "PT30M", tti = "PT1H", tti_empty = "PT30M" } | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -69,9 +69,6 @@ pub struct Cache { | |
/// supports [MokaCacheEntry] `ttl` and `tti` and `cap` per cache entry type. | ||
#[derive(Debug, Clone, Deserialize)] | ||
pub struct MokaCache { | ||
/// Whether the cache level should be used. | ||
pub enabled: bool, | ||
|
||
/// The configuration for the cache entries. | ||
pub entries: CacheEntries<MokaCacheEntry>, | ||
} | ||
|
@@ -80,9 +77,6 @@ pub struct MokaCache { | |
/// [RedisCacheEntry] `ttl` per cache entry type but not `tti` and `cap`. | ||
#[derive(Debug, Clone, Deserialize)] | ||
pub struct RedisCache { | ||
/// Whether the cache level should be used. | ||
pub enabled: bool, | ||
|
||
/// The address of the redis instance (e.g. `redis://username:[email protected]/0`). Only used | ||
/// if redis is enabled. | ||
pub address: String, | ||
|