Skip to content
Snippets Groups Projects
Commit b2ee0786 authored by Adrien Béraud's avatar Adrien Béraud
Browse files

reduce default storage time to 10 minutes

parent 388d43b8
No related branches found
No related tags found
No related merge requests found
...@@ -86,7 +86,7 @@ struct ValueType { ...@@ -86,7 +86,7 @@ struct ValueType {
typedef uint16_t Id; typedef uint16_t Id;
ValueType () {} ValueType () {}
ValueType (Id id, std::string name, duration e = std::chrono::hours(1)) ValueType (Id id, std::string name, duration e = std::chrono::minutes(10))
: id(id), name(name), expiration(e) {} : id(id), name(name), expiration(e) {}
ValueType (Id id, std::string name, duration e, StorePolicy&& sp, EditPolicy&& ep) ValueType (Id id, std::string name, duration e, StorePolicy&& sp, EditPolicy&& ep)
...@@ -108,7 +108,7 @@ struct ValueType { ...@@ -108,7 +108,7 @@ struct ValueType {
Id id {0}; Id id {0};
std::string name {}; std::string name {};
duration expiration {60 * 60}; duration expiration {60 * 10};
StorePolicy storePolicy {DEFAULT_STORE_POLICY}; StorePolicy storePolicy {DEFAULT_STORE_POLICY};
EditPolicy editPolicy {DEFAULT_EDIT_POLICY}; EditPolicy editPolicy {DEFAULT_EDIT_POLICY};
}; };
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment