Skip to content

Latest commit

 

History

History
81 lines (50 loc) · 2.51 KB

File metadata and controls

81 lines (50 loc) · 2.51 KB

@onzag/itemize / Modules / server/cache

Module: server/cache

This is a very important class that contains the whole redis wrapping that basically keeps everything synchronized, all the servers and tells the clients that are connected to this specific instance, it provides functionality to update, create and delete item definition values

Table of contents

Classes

Interfaces

Functions

Functions

analyzeIdefForPossibleParent

analyzeIdefForPossibleParent(possibleParent, idef): boolean

This function analyzes an item definition to check for a possible parent and returns true if there's any parent rule within itself, including its children that matches the possible parent

Parameters

Name Type Description
possibleParent default the possible parent
idef default the item definition in question

Returns

boolean

a simple boolean

Defined in

server/cache.ts:169


analyzeModuleForPossibleParent

analyzeModuleForPossibleParent(possibleParent, module): default[]

This function finds modules for a given module, including its children that do match a possible parent rule

Parameters

Name Type Description
possibleParent default the possible parent
module default the current module to analyze

Returns

default[]

a list of modules

Defined in

server/cache.ts:138