Skip to main content

Mountain/IPC/AdvancedFeatures/
CachedMessage.rs

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