Skip to main content

Mountain/IPC/AdvancedFeatures/
CachedMessage.rs

1
2//! Single TTL-bound cache entry: payload, insertion timestamp
3//! (UNIX seconds), and time-to-live in seconds.
4
5use serde::{Deserialize, Serialize};
6
7#[derive(Debug, Clone, Serialize, Deserialize)]
8pub struct Struct {
9	pub data:serde_json::Value,
10
11	pub timestamp:u64,
12
13	pub ttl:u64,
14}