Skip to content

Instantly share code, notes, and snippets.

@seth
Created July 19, 2010 19:42
Show Gist options
  • Save seth/481883 to your computer and use it in GitHub Desktop.
Save seth/481883 to your computer and use it in GitHub Desktop.
25> X1 = riakc_obj:new(<<"b">>, <<"k">>, <<"{\"v\":1}">>, "application/json").
{riakc_obj,<<"b">>,<<"k">>,undefined,[],
{dict,1,16,16,8,80,48,
{[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],...},
{{[],[],[],[],[],[],[],[],[],[],[[<<...>>|...]],[],[],...}}},
<<"{\"v\":1}">>}
26> riakc_obj:get_content_type(X1).
** exception throw: no_metadata
in function riakc_obj:get_metadata/1
in call from riakc_obj:get_content_type/1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment