9_Permanent Storage

9

//
//  ViewController.swift
//  Permanent Storage
//
//  Created by ZC on 16/1/9.
//  Copyright © 2016年 ZC. All rights reserved.
//

import UIKit

class ViewController: UIViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
        // Do any additional setup after loading the view, typically from a nib.

        NSUserDefaults.standardUserDefaults().setObject("zcdll", forKey: "name")

        let userName = NSUserDefaults.standardUserDefaults().objectForKey("name")! as! String

        print(userName)

        let arr = [1,2,3,4,5]

        NSUserDefaults.standardUserDefaults().setObject(arr, forKey: "Array")

        let returnArray = NSUserDefaults.standardUserDefaults().objectForKey("Array")! as! NSArray

        for m in returnArray {

            print(m)
        }

    }

    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }

}

项目:9_Premanent Storage

时间: 2024-08-25 07:21:27

9_Permanent Storage的相关文章

Storage Metrics

SharePoint站点在使用过程中,内容会越来越过,这会导致占用内容数据库,也会增加管理的复杂度,甚至会降低系统的响应时间.可以通过设定site quota来设定警告,这样管理员就会知道一些站点的内容过大了. 下一步就是要查找,站点里哪里占用了空间.显然通过手动浏览文档库和文件夹的方式是不现实的.而SharePoint提供的Storage Metrics 功能对管理员就很有帮助了. 进入到Site Settings, 在Site Collection Settings中找到Storage Me

【oracle】oracledba4 when you need to change storage options

In which scenarios would you rebuild an index? (Choose all that a pply.) A. when you need to disable the index usage B. when you need to change storage options C. when you need to enable index monitoring D. when you need to move the index to another 

Cannot lock storage /tmp/hadoop-root/dfs/name. The directory is already locked.

[[email protected] bin]# ./hadoop namenode -format 12/05/21 06:13:51 INFO namenode.NameNode: STARTUP_MSG: /************************************************************ STARTUP_MSG: Starting NameNode STARTUP_MSG:   host = nn01/127.0.0.1 STARTUP_MSG:  

细说 Azure Storage 的冗余策略

当我们想要把应用搬到云端的时候,首先要关注的便是数据的安全性.当然所有的云服务厂商都会对用户数据承诺一个非常高的安全性,但万一出现意外呢?我们是不是还要有适当的应对方案?比如今年的3月8日晚间,Azure 某个区域中的存储几乎全部不能访问,持续达两个多小时.当时最担心的是:用户的数据万一丢掉怎么办?同时,我们是不是可以根据云服务提供的数据服务的特点来优化程序的性能呢?基于如此种种的原因,我们需要了解云端数据服务的一些特性的详情,这将对我们很有帮助.本文将和大家一起探讨 Azure Storage

SAN & vSAN & vSAN storage

SAN (storage area network ) 定义: Storage area network (SAN) is a network that primarily connects the storage systems with the computer systems and also connects the storage systems with each other 解释: ·一种网络 ·连接存储与主机,存储与存储 SAN, LAN 还有WAN构建了我们的网络系统 vSAN

【转】日立HDS存储Storage Navigator Modular 2(SNM2)管理软件下载(包含安装配置说明)

[转]之前写了篇"HDS(日立)AMS2000系列存储管理配置方法",里面提到到JAVA及Storage Navigator Modular 2软件,特提供下载. 百度云下载:Storage Navigator Modular 2(SNM2) Version 23.00 转自:老管网络日志 软件下载: http://guanjianfeng.com/archives/1159033 配置方法: http://guanjianfeng.com/archives/1159031

Web Storage

前面的话 Web存储最初作为HTML5的一部分被定义成API形式,但是后来被剥离出来作为独立的一份标准了.Web存储标准所描述的API包含localStorage对象和sessionStorage对象,这两个对象实际上是持久化关联数组,是名值对的映射表,“名”和“值”都是字符串.Web存储易于使用.支持大容量(但非无限量)数据存储同时兼容当前所有主流浏览器.本文将详细介绍Web Storage 概述 Web Storage的目的是克服由cookie带来的一些限制,当数据需要被严格控制在客户端上时

ES(3): ES Cluster Extended Azure Storage

Azure VM的磁盘空间远远不能满足ES集群存储需求(还需除掉VM的临时盘),同时也未找着ES配置 block blob storage 存储的组件,因此下文介绍通过挂载附加盘的方式增加ES集群存储空间容量的操作过程. 目录: LVM基本术语 Azure Storage 介绍 ES cluster 配置Azure Storage LVM基本术语 LVM:是Linux提供的逻辑盘卷管理(Logical VolumeManager)的简称 物理存储介质(The physical media): 这

HTML5使用local storage存储的数据是如何保存在本地的

HTML5使用local storage存储的数据是如何保存在本地的?(我使用的是chrome浏览器,chrom浏览器是用sqlite来保存本地数据的) HTML5 的local storage 是通过浏览器在本地存储的数据. 基本使用方法如下: <script type="text/javascript"> localStorage.firstName = "Tom"; alert(localStorage.firstName); </scrip