Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Hentioe
committed
Apr 14, 2019
1 parent
66d9846
commit dd9b2e0
Showing
2 changed files
with
26 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
module Policr::Cache | ||
extend self | ||
|
||
enum TortureTimeType | ||
Sec | ||
Min | ||
end | ||
|
||
@@torture_time_msg = Hash(Int32, TortureTimeType).new | ||
|
||
def carving_torture_time_msg_sec(message_id) | ||
@@torture_time_msg[message_id] = TortureTimeType::Sec | ||
end | ||
|
||
def carving_torture_time_msg_min(message_id) | ||
@@torture_time_msg[message_id] = TortureTimeType::Min | ||
end | ||
|
||
def torture_time_msg?(message_id) | ||
@@torture_time_msg[message_id]? | ||
end | ||
end |