GoLang TokyoTyrant::get

request it (238)
GoLang replacement for PHP's TokyoTyrant::get [edit | history]

Do you know a GoLang replacement for PHP's TokyoTyrant::get? Write it!

PHP TokyoTyrant::get

PHP original manual for TokyoTyrant::get [ show | php.net ]


(PECL tokyo_tyrant >= 0.1.0)

TokyoTyrant::getThe get purpose


public mixed TokyoTyrant::get ( mixed $keys )

This method is used to return a value or multiple values. This method accepts a string or an array as a value.



A string key or an array of string keys

Return Values

Returns a string or an array based on the given parameters. Throws a TokyoTyrantException on error. If string is passed null is returned if the key is not found. In case an array is given as an parameter only existing keys will be returned. It is not an error to pass a key that does not exist.


Example #1 TokyoTyrant::get() example

= new TokyoTyrant("localhost"1978);

The above example will output:

array(2) {
  string(6) "value1"
  string(6) "value2"
string(6) "value1"

See Also