Skip to main content

This is documentation for Caché & Ensemble. See the InterSystems IRIS version of this content.Opens in a new tab

For information on migrating to InterSystems IRISOpens in a new tab, see Why Migrate to InterSystems IRIS?

ディスクへのデータの格納

通常の変数を使用するのと同様に、簡単にデータをディスクに永続的に格納できます。このためには、変数名の先頭に曲折アクセント記号 (^) を付けます。以下の例では、通常の変数 x とは異なる変数 ^x で文字列を保存します。詳細は後で学習します。

コードを実行するたびに、更新する前の ^x の現在値を表示します。

x = 4
println "x = ", x
println "old value of ^x = ", ^x
^x = "random number: " & int((rnd()*10))
println "new value of ^x = ", ^x
FeedbackOpens in a new tab