Storage options for castle.js 2.2.0

We've released version 2.2.0 of castle.js, which includes new options for how browser storage is used. There are two new parameters that can be provided in the storage field:

  • name: change the name of the storage key used by castle.js. This is useful in cases there is a conflict with another vendor. Default is __cuid
  • expireIn: change the expiration time for internal data stored by castle.js. For best performance, we recommend keeping this to the default, and only change in case you have specific requirements for e.g. compliance.
  // options
  storage: { // new configuration options
    name: '__cuid',
    expireIn: 34560000

Read the full documentation for castle.js here