diff options
| author | JP Dillingham <jp@dillingham.me> | 2026-04-22 18:47:48 -0500 |
|---|---|---|
| committer | JP Dillingham <jp@dillingham.me> | 2026-04-22 18:47:48 -0500 |
| commit | 13e8d31658fbe9083bb44bc0666983fa988af0ca (patch) | |
| tree | 17ecdf7cfcbc29c05971dfb27aab7e8f6a02ea5e /src/slskd/Users/IUserService.cs | |
| parent | a379b400b62c7c29fb3ace854b2d8acfdeeee26e (diff) | |
| download | slskd-13e8d31658fbe9083bb44bc0666983fa988af0ca.tar.gz | |
add cache for IsBlacklisted
Diffstat (limited to 'src/slskd/Users/IUserService.cs')
| -rw-r--r-- | src/slskd/Users/IUserService.cs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/slskd/Users/IUserService.cs b/src/slskd/Users/IUserService.cs index f2cfa5f1..28bb6459 100644 --- a/src/slskd/Users/IUserService.cs +++ b/src/slskd/Users/IUserService.cs @@ -144,8 +144,9 @@ namespace slskd.Users /// </summary> /// <param name="username">The username to check.</param> /// <param name="ipAddress">The IPAddress to check, if available.</param> + /// <param name="bypassCache">A value indicating whether to compute blacklisted status on a cache miss.</param> /// <returns>A value indicating whether the specified user and/or IP are blacklisted.</returns> - bool IsBlacklisted(string username, IPAddress ipAddress = null); + bool IsBlacklisted(string username, IPAddress ipAddress = null, bool bypassCache = true); /// <summary> /// Retrieves a value indicating whether the specified peer is privileged. |
