About Pi Downloads Documentation Plugins Developer Forum Issues

pi.storage.set

Summary

Sets value of the record.

Syntax

object.remove();

Example

 >>> var data = new pi.storage("counter");
 >>> data.get();
 null
 >>> data.set("foo");
 >>> data.get();
 "foo"