20#ifndef GEODE_EXPIRATIONATTRIBUTES_H_
21#define GEODE_EXPIRATIONATTRIBUTES_H_
26#include "internal/geode_globals.hpp"
73 const std::chrono::seconds& expirationTime,
82 void setTimeout(
const std::chrono::seconds& timeout);
94 std::chrono::seconds m_timeout;
ExpirationAction
ExpirationAction.hpp Enumerated type for expiration actions.
Definition: ExpirationAction.hpp:42
Immutable parameter object for accessing and setting the attributes associated with timeToLive and id...
Definition: ExpirationAttributes.hpp:50
ExpirationAttributes()
public methods
const std::chrono::seconds & getTimeout() const
Returns the duration before a region or value expires.
ExpirationAction getAction() const
Returns the action that should take place when this value or region expires.
ExpirationAttributes(const std::chrono::seconds &expirationTime, const ExpirationAction expirationAction=ExpirationAction::INVALIDATE)
Constructs an ExpirationAttributes with the specified expiration time and expiration action.