예제 #1
0
    def insert_multi(self,
                     keys,
                     ttl=0,
                     format=None,
                     persist_to=0,
                     replicate_to=0):
        """Add multiple keys. Multi variant of :meth:`insert`

        .. seealso:: :meth:`insert`, :meth:`upsert_multi`, :meth:`upsert`
        """
        return _Base.insert_multi(self,
                                  keys,
                                  ttl=ttl,
                                  format=format,
                                  persist_to=persist_to,
                                  replicate_to=replicate_to)
예제 #2
0
    def insert_multi(
            self,  # type: Client
            keys,  # type: Mapping[str,Any]
            ttl=0,  # type: int
            format=None,  # type: int
            persist_to=0,  # type: int
            replicate_to=0,  # type: int
            durability_level=Durability.NONE  # type: Durability
    ):
        # type: (...)->Result
        """Add multiple keys. Multi variant of :meth:`insert`

        .. seealso:: :meth:`insert`, :meth:`upsert_multi`, :meth:`upsert`
        """
        return _Base.insert_multi(self,
                                  keys,
                                  ttl=ttl,
                                  format=format,
                                  persist_to=persist_to,
                                  replicate_to=replicate_to,
                                  durability_level=durability_level)