Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagec#
.UseModule<FullCache>(Configuration.GetSection("Lynicon:Base:Cache"))

.UseModule<FullCache>(Configuration.GetSection("Lynicon:Base:Cache"), (Func<Type, bool>)(t => !(new Type[] { typeof(User) }.Contains(t))))


The full cache has the following arguments when set up:

  • An IConfigurationSection pointing to a configuration section: the default configuration will have been set up in the location shown above when setting up Lynicon Base modules.
  • Optionally, it can have the ApplyToType property set which is a function from Type to bool where the type is a container type and the result is true if this container type is cached.