module DynFork::Globals

Overview

Global storage for data cache.

Included Modules

Defined in:

dynfork/globals/aliases.cr
dynfork/globals/store.cr

Class Method Summary

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.app_name : String #

Global DynFork settings.


[View source]
def self.app_name=(app_name : String) #

Global DynFork settings.


[View source]
def self.database_name : String #

[View source]
def self.database_name=(database_name : String) #

[View source]
def self.mongo_client : Mongo::Client #

Mongo client caching.


def self.mongo_client=(mongo_client : Mongo::Client) #

Mongo client caching.


[View source]
def self.mongo_client? : Mongo::Client | Nil #

Mongo client caching.


def self.mongo_database : Mongo::Database #

Mongo database caching.


def self.mongo_database=(mongo_database : Mongo::Database) #

Mongo database caching.


[View source]
def self.mongo_database? : Mongo::Database | Nil #

Mongo database caching.


def self.regex : CacheRegexType #

Regex caching.


[View source]
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ю.

[View source]
def self.unique_app_key : String #

[View source]
def self.unique_app_key=(unique_app_key : String) #

[View source]