restructure: move el compiler content into lang/
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
// ttl-cache.el — TTL helpers backed by typed Duration. Storing under a key
|
||||
// stamps the set time as an Instant; ttl_cache_get computes the age and
|
||||
// returns the value only if the age is within the supplied Duration.
|
||||
|
||||
// `test` is reserved; using `run_test` instead.
|
||||
fn run_test() -> String {
|
||||
ttl_cache_set("key1", "hello")
|
||||
let v: String = ttl_cache_get("key1", 1.hour)
|
||||
return v
|
||||
}
|
||||
|
||||
fn main() -> Void {
|
||||
println(run_test())
|
||||
}
|
||||
Reference in New Issue
Block a user