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)


68
69
70
71
72
# File 'lib/matrix_sdk/util/tinycache_adapter.rb', line 68

def expired?
  return false if expires_at.nil?

  Time.now > expires_at
end