You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- module.exports = {
- save: function () {
- if (!this.persist)
- return null;
-
- let values = {};
- for (let p in this) {
- let value = this[p];
- if ((typeof(value) === 'function') || (p === 'obj') || (p === 'events'))
- continue;
-
- values[p] = value;
- }
-
- if (!values.expire)
- values.expire = (+new Date()) + (this.ttl * 350);
-
- return values;
- },
-
- simplify: function () {
- return this.type;
- }
- };
|