cache
Cache a value in the composition. During initial composition block is called to produce the value that is then stored in the slot table. During recomposition, if invalid is false the value is obtained from the slot table and block is not invoked. If invalid is false a new value is produced by calling block and the slot table is updated to contain the new value.