class Lato::User
def c_email_verification_semaphore(value = nil)
def c_email_verification_semaphore(value = nil) cache_key = "Lato::User/c_email_verification_semaphore/#{id}" return Rails.cache.read(cache_key) if value.nil? Rails.cache.write(cache_key, value, expires_in: 2.minutes) value end