PHP安装REDIS扩展
下载地址:http://pecl.php.net/package/redis
安装:

 tar  -zxvf  redis-2.2.8.tgz
 cd  redis-2.2.8
 /usr/local/php/bin/phpize                      #用phpize生成
./configure --with-php-config=/usr/local/php/bin/php-config      #配置
 make 
  make  install 
 到此扩展下载安装完成

配置php.ini文件,使得php可以支持redis扩展
vim /etc/php.ini
添加这行进去 : extension = redis.so
重启服务;
测试下phpinfo();现在就可以看到redis扩展支持了;

redis批量删除

redis-cli keys ewei_* | xargs redis-cli del

指定IP和端口
redis-cli [-h 192.168.0.8 -p 6380] keys "obj_base_*" |xargs redis-cli [-h 192.168.0.8 -p 6380] del

redis-cli keys "obj_base_*" |xargs redis-cli del

效果截图如下:

效果截图

WXML

    <view class="menu-mask {{menuStyle}}" @tap="openMenu('')"></view>
<view class="menu-nav {{menuStyle}}">
    <view class="menu" @tap="openMenu({{menuStyle!='show'?'show':''}})"><text class="iconfont icon-fenlei"></text></view>
    <view class="menu-li" @tap="pathTo" data-url="{{item.path}}" wx:for="{{menus}}" wx:key="">{{item.name}} <view class="icon"><text class="iconfont {{item.icon}}"></text></view></view>
</view>

WXSS(LESS)

    /**浮动菜单**/
.menu-mask{
    position: fixed;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,.7);
    z-index: 10;
    display: none;
    opacity: 0;
    transition: all .3s;
    &.show{display: block; opacity: 1;}
}
.menu-nav{
    position: fixed;
    right: 30rpx;
    bottom: 100rpx;
    z-index: 100;
    .menu,.menu-li{
        position: absolute;
        bottom: 0;
        right: 0;
        transition: all .3s;
        line-height: 1;
    }
    .menu{
        font-size: 40rpx;
        display: flex;
        align-items: center; justify-content: center;
        width: 80rpx;
        height: 80rpx;
        border-radius: 100%;
        background-color: #F64E45;
        box-shadow: 0 0 20rpx #F64E45;
        color: #fff;
        z-index: 100;
    }
    .menu-li{
        width: 250rpx;
        padding-right: 10rpx;
        text-align: right;
        display: flex;
        align-items: center;
        justify-content: flex-end;
        opacity: 0;
        .icon{
            font-size: 32rpx;
            margin-left: 20rpx;
            display: flex;
            align-items: center; justify-content: center;
            width: 60rpx;
            height: 60rpx;
            border-radius: 100%;
            background-color: #40464C;
            box-shadow: 0 0 10rpx #40464C;
            color: #fff;
        }
    }
    &.show{
        .menu {
            background-color: #282D33;
            box-shadow: 0 0 20rpx #282D33;
        }
        .menu-li{
            color: #fff;
            opacity: 1;
            &:nth-child(2){bottom: 100rpx;}
            &:nth-child(3){bottom: 180rpx;}
            &:nth-child(4){bottom: 260rpx;}
            &:nth-child(5){bottom: 340rpx;}
            &:nth-child(6){bottom: 420rpx;}
            &:nth-child(7){bottom: 500rpx;}
        }
    }
}