feat(workflow): example stats page with embedded Chart.js, inline form validation errors
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -37,10 +37,14 @@ class Cache {
|
||||
bool lookup(const std::string& key, std::string& out, long now);
|
||||
void invalidate(const std::string& key);
|
||||
std::size_t size() const;
|
||||
long hits() const;
|
||||
long misses() const;
|
||||
|
||||
private:
|
||||
mutable std::mutex mu_;
|
||||
std::map<std::string, CacheEntry> data_;
|
||||
long hits_ = 0;
|
||||
long misses_ = 0;
|
||||
};
|
||||
|
||||
using PubsubHandler = std::function<void(const std::string& message)>;
|
||||
|
||||
Reference in New Issue
Block a user