Class: MatrixSdk::Util::TinycacheAdapter::Value

Inherits:
Struct
  • Object
show all
Defined in:
lib/matrix_sdk/util/tinycache_adapter.rb

Instance Method Summary collapse

Instance Method Details

#expired?Boolean

Returns:

  • (Boolean)


78
79
80
81
82
# File 'lib/matrix_sdk/util/tinycache_adapter.rb', line 78

def expired?
  return false if expires_at.nil?

  Time.now > expires_at
end