mirror of
https://github.com/openappsec/openappsec.git
synced 2026-01-17 16:00:26 +03:00
update code to support brotli
This commit is contained in:
13
core/config/config_cache_stats.cc
Normal file
13
core/config/config_cache_stats.cc
Normal file
@@ -0,0 +1,13 @@
|
||||
#include <atomic>
|
||||
|
||||
// Forward declaration of CacheStats struct
|
||||
struct CacheStats {
|
||||
static std::atomic<uint64_t> hits;
|
||||
static std::atomic<uint64_t> misses;
|
||||
static bool tracking_enabled;
|
||||
};
|
||||
|
||||
// Define static members for cache statistics
|
||||
std::atomic<uint64_t> CacheStats::hits{0};
|
||||
std::atomic<uint64_t> CacheStats::misses{0};
|
||||
bool CacheStats::tracking_enabled = false;
|
||||
Reference in New Issue
Block a user