PHP » GoLang |
login |
register |
about
|
GoLang TokyoTyrant::get
request it (323)
GoLang replacement for PHP's TokyoTyrant::get
[edit | history]
TokyoTyrant::get(PECL tokyo_tyrant >= 0.1.0) TokyoTyrant::get — The get purpose DescriptionThis method is used to return a value or multiple values. This method accepts a string or an array as a value. Return ValuesReturns 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. Examples
Example #1 TokyoTyrant::get() example
<?php The above example will output: array(2) { ["key1"]=> string(6) "value1" ["key2"]=> string(6) "value2" } string(6) "value1" |
more
Recently updated
more
Most requested
more
Last requests
|