module DynFork::Globals
Overview
Global storage for data cache.
Included Modules
Defined in:
dynfork/globals/aliases.crdynfork/globals/store.cr
Class Method Summary
-
.app_name : String
Global DynFork settings.
-
.app_name=(app_name : String)
Global DynFork settings.
- .database_name : String
- .database_name=(database_name : String)
-
.mongo_client : Mongo::Client
Mongo client caching.
-
.mongo_client=(mongo_client : Mongo::Client)
Mongo client caching.
-
.mongo_client? : Mongo::Client | Nil
Mongo client caching.
-
.mongo_database : Mongo::Database
Mongo database caching.
-
.mongo_database=(mongo_database : Mongo::Database)
Mongo database caching.
-
.mongo_database? : Mongo::Database | Nil
Mongo database caching.
-
.regex : CacheRegexType
Regex caching.
-
.super_collection_name
Super collection name caching.
- .unique_app_key : String
- .unique_app_key=(unique_app_key : String)
Instance methods inherited from module DynFork::Globals::Date
date_parse(date : String) : Time
date_parse,
datetime_parse(datetime : String) : Time
datetime_parse
Class Method Detail
def self.super_collection_name
#
Super collection name caching.
Super collection is used for:
- Store technical data for Models migration into a database.
- Store dynamic field data for simulate relationship Many-to-One and Many-to-ManyŃ.